PATH:
home
/
lab2454c
/
caimegroup.com
/
wp-content
/
plugins
/
mailpoet
/
lib
/
Entities
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing namespace MailPoet\Entities; if (!defined('ABSPATH')) exit; use DateTimeInterface; use MailPoetVendor\Carbon\Carbon; use MailPoetVendor\Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity() * @ORM\Table(name="subscriber_ips") */ class SubscriberIPEntity { /** * @ORM\Id * @ORM\Column(type="string") * @var string */ private $ip; /** * We have to use own type because createdAt is part of the primary key and basic datetimetz isn't supported in primary key * @ORM\Id * @ORM\Column(type="datetimetz_to_string") * @var DateTimeInterface */ private $createdAt; public function __construct( string $ip ) { $this->ip = $ip; $this->createdAt = new Carbon(); } public function getIP(): string { return $this->ip; } public function getCreatedAt(): DateTimeInterface { return $this->createdAt; } public function setCreatedAt(DateTimeInterface $createdAt): void { $this->createdAt = $createdAt; } }
[-] WpPostEntity.php
[edit]
[-] StatisticsOpenEntity.php
[edit]
[-] NewsletterEntity.php
[edit]
[-] UserAgentEntity.php
[edit]
[-] index.php
[edit]
[-] NewsletterPostEntity.php
[edit]
[-] FormEntity.php
[edit]
[+]
..
[-] NewsletterLinkEntity.php
[edit]
[-] FeatureFlagEntity.php
[edit]
[-] StatisticsWooCommercePurchaseEntity.php
[edit]
[-] SubscriberTagEntity.php
[edit]
[-] StatsNotificationEntity.php
[edit]
[-] SubscriberSegmentEntity.php
[edit]
[-] StatisticsUnsubscribeEntity.php
[edit]
[-] SubscriberIPEntity.php
[edit]
[-] DynamicSegmentFilterData.php
[edit]
[-] StatisticsFormEntity.php
[edit]
[-] SubscriberEntity.php
[edit]
[-] SegmentEntity.php
[edit]
[-] ScheduledTaskSubscriberEntity.php
[edit]
[-] NewsletterOptionFieldEntity.php
[edit]
[-] UserFlagEntity.php
[edit]
[-] ScheduledTaskEntity.php
[edit]
[-] CustomFieldEntity.php
[edit]
[-] StatisticsClickEntity.php
[edit]
[-] StatisticsNewsletterEntity.php
[edit]
[-] StatisticsBounceEntity.php
[edit]
[-] NewsletterOptionEntity.php
[edit]
[-] NewsletterSegmentEntity.php
[edit]
[-] SendingQueueEntity.php
[edit]
[-] NewsletterTemplateEntity.php
[edit]
[-] TagEntity.php
[edit]
[-] SettingEntity.php
[edit]
[-] LogEntity.php
[edit]
[-] DynamicSegmentFilterEntity.php
[edit]
[-] SubscriberCustomFieldEntity.php
[edit]