Use correct return value

[MAILPOET-2320]
This commit is contained in:
Pavel Dohnal
2019-09-03 10:15:05 +02:00
committed by M. Shull
parent c3bd05e7e3
commit abdf20b490
8 changed files with 37 additions and 0 deletions

View File

@@ -130,6 +130,9 @@ class Model extends \Sudzy\ValidModel {
parent::__construct($validator); parent::__construct($validator);
} }
/**
* @return bool|static
*/
static function create() { static function create() {
return parent::create(); return parent::create();
} }

View File

@@ -3,6 +3,12 @@ namespace MailPoet\Models;
if (!defined('ABSPATH')) exit; if (!defined('ABSPATH')) exit;
/**
* @property int $newsletter_id
* @property int $option_field_id
* @property string $value
* @property string $updated_at
*/
class NewsletterOption extends Model { class NewsletterOption extends Model {
public static $_table = MP_NEWSLETTER_OPTION_TABLE; public static $_table = MP_NEWSLETTER_OPTION_TABLE;

View File

@@ -3,6 +3,11 @@ namespace MailPoet\Models;
if (!defined('ABSPATH')) exit; if (!defined('ABSPATH')) exit;
/**
* @property int $newsletter_id
* @property int $post_id
* @property string $updated_at
*/
class NewsletterPost extends Model { class NewsletterPost extends Model {
public static $_table = MP_NEWSLETTER_POSTS_TABLE; public static $_table = MP_NEWSLETTER_POSTS_TABLE;

View File

@@ -3,6 +3,11 @@ namespace MailPoet\Models;
if (!defined('ABSPATH')) exit; if (!defined('ABSPATH')) exit;
/**
* @property int $newsletter_id
* @property int $segment_id
* @property string $updated_at
*/
class NewsletterSegment extends Model { class NewsletterSegment extends Model {
public static $_table = MP_NEWSLETTER_SEGMENT_TABLE; public static $_table = MP_NEWSLETTER_SEGMENT_TABLE;
} }

View File

@@ -3,6 +3,11 @@ namespace MailPoet\Models;
if (!defined('ABSPATH')) exit; if (!defined('ABSPATH')) exit;
/**
* @property int $newsletter_id
* @property int $subscriber_id
* @property int $queue_id
*/
class StatisticsOpens extends Model { class StatisticsOpens extends Model {
public static $_table = MP_STATISTICS_OPENS_TABLE; public static $_table = MP_STATISTICS_OPENS_TABLE;

View File

@@ -3,6 +3,11 @@ namespace MailPoet\Models;
if (!defined('ABSPATH')) exit; if (!defined('ABSPATH')) exit;
/**
* @property int $newsletter_id
* @property int $subscriber_id
* @property int $queue_id
*/
class StatisticsUnsubscribes extends Model { class StatisticsUnsubscribes extends Model {
public static $_table = MP_STATISTICS_UNSUBSCRIBES_TABLE; public static $_table = MP_STATISTICS_UNSUBSCRIBES_TABLE;

View File

@@ -2,6 +2,11 @@
namespace MailPoet\Models; namespace MailPoet\Models;
/**
* @property int $newsletter_id
* @property int $task_id
* @property string $updated_at
*/
class StatsNotification extends Model { class StatsNotification extends Model {
public static $_table = MP_STATS_NOTIFICATIONS_TABLE; public static $_table = MP_STATS_NOTIFICATIONS_TABLE;

View File

@@ -3,6 +3,9 @@ namespace MailPoet\Models;
if (!defined('ABSPATH')) exit; if (!defined('ABSPATH')) exit;
/**
* @property string $ip
*/
class SubscriberIP extends Model { class SubscriberIP extends Model {
public static $_table = MP_SUBSCRIBER_IPS_TABLE; public static $_table = MP_SUBSCRIBER_IPS_TABLE;
} }