Fix undefined properties in models [MAILPOET-2488]

This commit is contained in:
wxa
2019-12-20 10:56:18 +03:00
committed by amine-mp
parent 7285a4a075
commit dec7bc24a5
8 changed files with 16 additions and 8 deletions

View File

@@ -6,6 +6,7 @@ use MailPoet\Form\Block\Date;
use MailPoet\WP\Functions as WPFunctions;
/**
* @property string $name
* @property string $type
* @property string|array|null $params
*/

View File

@@ -123,6 +123,8 @@ use MailPoet\WP\Functions as WPFunctions;
* @property string|null $created_at
* @property string|null $updated_at
* @property string|null $id
* @property string|null $first
* @property string|null $last
*/
class Model extends \MailPoetVendor\Sudzy\ValidModel {

View File

@@ -20,6 +20,7 @@ use function MailPoetVendor\array_column;
/**
* @property int $id
* @property int $parent_id
* @property string $type
* @property object|array|boolean $queue
* @property string $hash
@@ -29,11 +30,13 @@ use function MailPoetVendor\array_column;
* @property array $options
* @property int $children_count
* @property bool|array $statistics
* @property string $sent_at
* @property string $deleted_at
* @property int $total_sent
* @property int $total_scheduled
* @property array $segments
* @property string $subject
* @property string $preheader
* @property string $body
* @property string|null $schedule
* @property boolean|null $isScheduled

View File

@@ -4,6 +4,11 @@ namespace MailPoet\Models;
use MailPoet\WP\Functions as WPFunctions;
/**
* @property string $name
* @property string $newsletter_type
*/
class NewsletterOptionField extends Model {
public static $_table = MP_NEWSLETTER_OPTION_FIELDS_TABLE;

View File

@@ -19,6 +19,7 @@ use MailPoet\WP\Functions as WPFunctions;
* @property string|array $subscribers
* @property string|null $deleted_at
* @property string $scheduled_at
* @property string $status
*/
class SendingQueue extends Model {