Convert variable names to camel case in PHPDoc
[MAILPOET-1796]
This commit is contained in:
@@ -10,8 +10,8 @@ use MailPoet\WP\Functions as WPFunctions;
|
||||
* @property int $id
|
||||
* @property string $name
|
||||
* @property string $description
|
||||
* @property string $created_at
|
||||
* @property string $updated_at
|
||||
* @property string $createdAt
|
||||
* @property string $updatedAt
|
||||
*/
|
||||
class DynamicSegment extends MailPoetSegment {
|
||||
|
||||
|
@@ -6,8 +6,8 @@ use MailPoet\Models\Model;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
/**
|
||||
* @property array|string|null $filter_data
|
||||
* @property string $segment_id
|
||||
* @property array|string|null $filterData
|
||||
* @property string $segmentId
|
||||
*/
|
||||
class DynamicSegmentFilter extends Model {
|
||||
|
||||
|
@@ -122,8 +122,8 @@ use MailPoet\WP\Functions as WPFunctions;
|
||||
* @method static static distinct()
|
||||
* @method $this set(string|array $key, string|null $value = null)
|
||||
*
|
||||
* @property string|null $created_at
|
||||
* @property string|null $updated_at
|
||||
* @property string|null $createdAt
|
||||
* @property string|null $updatedAt
|
||||
* @property string|null $id
|
||||
* @property string|null $first
|
||||
* @property string|null $last
|
||||
|
@@ -20,20 +20,20 @@ use function MailPoetVendor\array_column;
|
||||
|
||||
/**
|
||||
* @property int $id
|
||||
* @property int $parent_id
|
||||
* @property int $parentId
|
||||
* @property string $type
|
||||
* @property object|array|boolean $queue
|
||||
* @property string $hash
|
||||
* @property string $sender_address
|
||||
* @property string $senderAddress
|
||||
* @property string $status
|
||||
* @property string|object $meta
|
||||
* @property array $options
|
||||
* @property int $children_count
|
||||
* @property int $childrenCount
|
||||
* @property bool|array $statistics
|
||||
* @property string $sent_at
|
||||
* @property string $deleted_at
|
||||
* @property int $total_sent
|
||||
* @property int $total_scheduled
|
||||
* @property string $sentAt
|
||||
* @property string $deletedAt
|
||||
* @property int $totalSent
|
||||
* @property int $totalScheduled
|
||||
* @property array $segments
|
||||
* @property string $subject
|
||||
* @property string $preheader
|
||||
@@ -41,7 +41,7 @@ use function MailPoetVendor\array_column;
|
||||
* @property string|null $schedule
|
||||
* @property boolean|null $isScheduled
|
||||
* @property string|null $scheduledAt
|
||||
* @property string $ga_campaign
|
||||
* @property string $gaCampaign
|
||||
*/
|
||||
|
||||
class Newsletter extends Model {
|
||||
|
@@ -3,8 +3,8 @@
|
||||
namespace MailPoet\Models;
|
||||
|
||||
/**
|
||||
* @property int $newsletter_id
|
||||
* @property int $queue_id
|
||||
* @property int $newsletterId
|
||||
* @property int $queueId
|
||||
* @property string $url
|
||||
* @property string $hash
|
||||
* @property int|null $clicksCount
|
||||
|
@@ -3,10 +3,10 @@
|
||||
namespace MailPoet\Models;
|
||||
|
||||
/**
|
||||
* @property int $newsletter_id
|
||||
* @property int $option_field_id
|
||||
* @property int $newsletterId
|
||||
* @property int $optionFieldId
|
||||
* @property string $value
|
||||
* @property string $updated_at
|
||||
* @property string $updatedAt
|
||||
*/
|
||||
class NewsletterOption extends Model {
|
||||
public static $_table = MP_NEWSLETTER_OPTION_TABLE;
|
||||
|
@@ -6,7 +6,7 @@ use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
/**
|
||||
* @property string $name
|
||||
* @property string $newsletter_type
|
||||
* @property string $newsletterType
|
||||
*/
|
||||
|
||||
class NewsletterOptionField extends Model {
|
||||
|
@@ -3,9 +3,9 @@
|
||||
namespace MailPoet\Models;
|
||||
|
||||
/**
|
||||
* @property int $newsletter_id
|
||||
* @property int $post_id
|
||||
* @property string $updated_at
|
||||
* @property int $newsletterId
|
||||
* @property int $postId
|
||||
* @property string $updatedAt
|
||||
*/
|
||||
class NewsletterPost extends Model {
|
||||
public static $_table = MP_NEWSLETTER_POSTS_TABLE;
|
||||
|
@@ -3,9 +3,9 @@
|
||||
namespace MailPoet\Models;
|
||||
|
||||
/**
|
||||
* @property int $newsletter_id
|
||||
* @property int $segment_id
|
||||
* @property string $updated_at
|
||||
* @property int $newsletterId
|
||||
* @property int $segmentId
|
||||
* @property string $updatedAt
|
||||
*/
|
||||
class NewsletterSegment extends Model {
|
||||
public static $_table = MP_NEWSLETTER_SEGMENT_TABLE;
|
||||
|
@@ -6,7 +6,7 @@ use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
/**
|
||||
* @property string $name
|
||||
* @property int|null $newsletter_id
|
||||
* @property int|null $newsletterId
|
||||
* @property string $categories
|
||||
* @property string $description
|
||||
* @property string|null $body
|
||||
|
@@ -10,13 +10,13 @@ use MailPoetVendor\Idiorm\ORM;
|
||||
|
||||
/**
|
||||
* @property int $id
|
||||
* @property string $processed_at
|
||||
* @property string $processedAt
|
||||
* @property string|null $status
|
||||
* @property string|null $type
|
||||
* @property int $priority
|
||||
* @property string|null $scheduled_at
|
||||
* @property boolean|null $in_progress
|
||||
* @property int $reschedule_count
|
||||
* @property string|null $scheduledAt
|
||||
* @property boolean|null $inProgress
|
||||
* @property int $rescheduleCount
|
||||
* @property string|array|null $meta
|
||||
*/
|
||||
class ScheduledTask extends Model {
|
||||
|
@@ -5,8 +5,8 @@ namespace MailPoet\Models;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
/**
|
||||
* @property int $task_id
|
||||
* @property int $subscriber_id
|
||||
* @property int $taskId
|
||||
* @property int $subscriberId
|
||||
* @property int $processed
|
||||
* @property int $failed
|
||||
* @property string $error
|
||||
|
@@ -8,8 +8,8 @@ use MailPoet\WooCommerce\Helper as WCHelper;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
/**
|
||||
* @property array $subscribers_count
|
||||
* @property array $automated_emails_subjects
|
||||
* @property array $subscribersCount
|
||||
* @property array $automatedEmailsSubjects
|
||||
* @property string $name
|
||||
* @property string $type
|
||||
* @property string $description
|
||||
|
@@ -8,17 +8,17 @@ use MailPoet\Util\Helpers;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
/**
|
||||
* @property int $count_processed
|
||||
* @property int $count_to_process
|
||||
* @property int $count_total
|
||||
* @property string|array $newsletter_rendered_body
|
||||
* @property string $newsletter_rendered_subject
|
||||
* @property int $task_id
|
||||
* @property int $newsletter_id
|
||||
* @property int $countProcessed
|
||||
* @property int $countToProcess
|
||||
* @property int $countTotal
|
||||
* @property string|array $newsletterRenderedBody
|
||||
* @property string $newsletterRenderedSubject
|
||||
* @property int $taskId
|
||||
* @property int $newsletterId
|
||||
* @property string|object|null $meta
|
||||
* @property string|array $subscribers
|
||||
* @property string|null $deleted_at
|
||||
* @property string $scheduled_at
|
||||
* @property string|null $deletedAt
|
||||
* @property string $scheduledAt
|
||||
* @property string $status
|
||||
*/
|
||||
|
||||
|
@@ -5,10 +5,10 @@ namespace MailPoet\Models;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
* @property int $newsletter_id
|
||||
* @property int $subscriber_id
|
||||
* @property int $queue_id
|
||||
* @property int $link_id
|
||||
* @property int $newsletterId
|
||||
* @property int $subscriberId
|
||||
* @property int $queueId
|
||||
* @property int $linkId
|
||||
* @property int $count
|
||||
*/
|
||||
class StatisticsClicks extends Model {
|
||||
|
@@ -3,7 +3,7 @@
|
||||
namespace MailPoet\Models;
|
||||
|
||||
/**
|
||||
* @property string|null $sent_at
|
||||
* @property string|null $sentAt
|
||||
*/
|
||||
class StatisticsNewsletters extends Model {
|
||||
public static $_table = MP_STATISTICS_NEWSLETTERS_TABLE;
|
||||
|
@@ -3,9 +3,9 @@
|
||||
namespace MailPoet\Models;
|
||||
|
||||
/**
|
||||
* @property int $newsletter_id
|
||||
* @property int $subscriber_id
|
||||
* @property int $queue_id
|
||||
* @property int $newsletterId
|
||||
* @property int $subscriberId
|
||||
* @property int $queueId
|
||||
*/
|
||||
class StatisticsOpens extends Model {
|
||||
public static $_table = MP_STATISTICS_OPENS_TABLE;
|
||||
|
@@ -3,9 +3,9 @@
|
||||
namespace MailPoet\Models;
|
||||
|
||||
/**
|
||||
* @property int $newsletter_id
|
||||
* @property int $subscriber_id
|
||||
* @property int $queue_id
|
||||
* @property int $newsletterId
|
||||
* @property int $subscriberId
|
||||
* @property int $queueId
|
||||
*/
|
||||
class StatisticsUnsubscribes extends Model {
|
||||
public static $_table = MP_STATISTICS_UNSUBSCRIBES_TABLE;
|
||||
|
@@ -5,13 +5,13 @@ namespace MailPoet\Models;
|
||||
use WC_Order;
|
||||
|
||||
/**
|
||||
* @property int $newsletter_id
|
||||
* @property int $subscriber_id
|
||||
* @property int $queue_id
|
||||
* @property int $click_id
|
||||
* @property int $order_id
|
||||
* @property string $order_currency
|
||||
* @property float $order_price_total
|
||||
* @property int $newsletterId
|
||||
* @property int $subscriberId
|
||||
* @property int $queueId
|
||||
* @property int $clickId
|
||||
* @property int $orderId
|
||||
* @property string $orderCurrency
|
||||
* @property float $orderPriceTotal
|
||||
*/
|
||||
class StatisticsWooCommercePurchases extends Model {
|
||||
public static $_table = MP_STATISTICS_WOOCOMMERCE_PURCHASES_TABLE;
|
||||
|
@@ -13,22 +13,22 @@ use function MailPoetVendor\array_column;
|
||||
/**
|
||||
* @property int $id
|
||||
* @property string $email
|
||||
* @property string $first_name
|
||||
* @property string $last_name
|
||||
* @property string $firstName
|
||||
* @property string $lastName
|
||||
* @property string $status
|
||||
* @property string|null $subscribed_ip
|
||||
* @property string|null $confirmed_ip
|
||||
* @property string|null $confirmed_at
|
||||
* @property string|null $last_subscribed_at
|
||||
* @property string|null $deleted_at
|
||||
* @property string|null $subscribedIp
|
||||
* @property string|null $confirmedIp
|
||||
* @property string|null $confirmedAt
|
||||
* @property string|null $lastSubscribedAt
|
||||
* @property string|null $deletedAt
|
||||
* @property string|null $source
|
||||
* @property string|null $link_token
|
||||
* @property int $count_confirmations
|
||||
* @property int $wp_user_id
|
||||
* @property string|null $linkToken
|
||||
* @property int $countConfirmations
|
||||
* @property int $wpUserId
|
||||
* @property array $segments
|
||||
* @property array $subscriptions
|
||||
* @property string $unconfirmed_data
|
||||
* @property int $is_woocommerce_user
|
||||
* @property string $unconfirmedData
|
||||
* @property int $isWoocommerceUser
|
||||
*/
|
||||
|
||||
class Subscriber extends Model {
|
||||
@@ -346,7 +346,7 @@ class Subscriber extends Model {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $customer_email
|
||||
* @param string $customerEmail
|
||||
* @return bool|Subscriber
|
||||
*/
|
||||
public static function getWooCommerceSegmentSubscriber($customerEmail) {
|
||||
|
@@ -7,8 +7,8 @@ use MailPoet\Util\Helpers;
|
||||
use function MailPoetVendor\array_column;
|
||||
|
||||
/**
|
||||
* @property int $subscriber_id
|
||||
* @property int $custom_field_id
|
||||
* @property int $subscriberId
|
||||
* @property int $customFieldId
|
||||
* @property string $value
|
||||
*/
|
||||
class SubscriberCustomField extends Model {
|
||||
|
@@ -4,8 +4,8 @@ namespace MailPoet\Models;
|
||||
|
||||
/**
|
||||
* @property int $id
|
||||
* @property int $subscriber_id
|
||||
* @property int $segment_id
|
||||
* @property int $subscriberId
|
||||
* @property int $segmentId
|
||||
* @property string $status
|
||||
*/
|
||||
|
||||
|
Reference in New Issue
Block a user