PATH:
home
/
lab2454c
/
caimegroup.com
/
wp-content
/
plugins
/
mailpoet
/
lib
/
Entities
<?php declare(strict_types = 1); namespace MailPoet\Entities; if (!defined('ABSPATH')) exit; use MailPoet\RuntimeException; use MailPoetVendor\Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(readOnly=true) * @ORM\Table(name="posts") */ class WpPostEntity { /** * @ORM\Column(type="integer", name="ID") * @ORM\Id * @ORM\GeneratedValue * @var int */ private $id; /** * @ORM\Column(type="string", name="post_title") * @var string */ private $postTitle; public function __construct() { throw new RuntimeException('WpPostEntity is read only and cannot be instantiated.'); } public function getId(): int { return $this->id; } public function getPostTitle(): string { return $this->postTitle; } /** * We don't use typehint for now because doctrine cache generator would fail as it doesn't know the class. * @return \WP_Post|null */ public function getWpPostInstance() { $post = \WP_Post::get_instance($this->id); return $post ?: null; } }
[-] 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]