Use correct return value
[MAILPOET-2320]
This commit is contained in:
@@ -130,6 +130,9 @@ class Model extends \Sudzy\ValidModel {
|
||||
parent::__construct($validator);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool|static
|
||||
*/
|
||||
static function create() {
|
||||
return parent::create();
|
||||
}
|
||||
|
@@ -3,6 +3,12 @@ namespace MailPoet\Models;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
* @property int $newsletter_id
|
||||
* @property int $option_field_id
|
||||
* @property string $value
|
||||
* @property string $updated_at
|
||||
*/
|
||||
class NewsletterOption extends Model {
|
||||
public static $_table = MP_NEWSLETTER_OPTION_TABLE;
|
||||
|
||||
|
@@ -3,6 +3,11 @@ namespace MailPoet\Models;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
* @property int $newsletter_id
|
||||
* @property int $post_id
|
||||
* @property string $updated_at
|
||||
*/
|
||||
class NewsletterPost extends Model {
|
||||
public static $_table = MP_NEWSLETTER_POSTS_TABLE;
|
||||
|
||||
|
@@ -3,6 +3,11 @@ namespace MailPoet\Models;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
* @property int $newsletter_id
|
||||
* @property int $segment_id
|
||||
* @property string $updated_at
|
||||
*/
|
||||
class NewsletterSegment extends Model {
|
||||
public static $_table = MP_NEWSLETTER_SEGMENT_TABLE;
|
||||
}
|
||||
|
@@ -3,6 +3,11 @@ namespace MailPoet\Models;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
* @property int $newsletter_id
|
||||
* @property int $subscriber_id
|
||||
* @property int $queue_id
|
||||
*/
|
||||
class StatisticsOpens extends Model {
|
||||
public static $_table = MP_STATISTICS_OPENS_TABLE;
|
||||
|
||||
|
@@ -3,6 +3,11 @@ namespace MailPoet\Models;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
* @property int $newsletter_id
|
||||
* @property int $subscriber_id
|
||||
* @property int $queue_id
|
||||
*/
|
||||
class StatisticsUnsubscribes extends Model {
|
||||
public static $_table = MP_STATISTICS_UNSUBSCRIBES_TABLE;
|
||||
|
||||
|
@@ -2,6 +2,11 @@
|
||||
|
||||
namespace MailPoet\Models;
|
||||
|
||||
/**
|
||||
* @property int $newsletter_id
|
||||
* @property int $task_id
|
||||
* @property string $updated_at
|
||||
*/
|
||||
class StatsNotification extends Model {
|
||||
public static $_table = MP_STATS_NOTIFICATIONS_TABLE;
|
||||
|
||||
|
@@ -3,6 +3,9 @@ namespace MailPoet\Models;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
/**
|
||||
* @property string $ip
|
||||
*/
|
||||
class SubscriberIP extends Model {
|
||||
public static $_table = MP_SUBSCRIBER_IPS_TABLE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user