1 | <?php |
||
27 | class Article extends BaseArticle implements ArticleInterface, GeoIpPlaceInterface |
||
28 | { |
||
29 | use TenantAwareTrait; |
||
30 | use OrganizationAwareTrait; |
||
31 | use PaywallSecuredTrait; |
||
32 | use ContentListsAwareTrait; |
||
33 | |||
34 | /** |
||
35 | * @var PackageInterface |
||
36 | */ |
||
37 | protected $package; |
||
38 | |||
39 | /** |
||
40 | * @var bool |
||
41 | */ |
||
42 | protected $isPublishedFBIA = false; |
||
43 | |||
44 | /** |
||
45 | * @var ArticleStatisticsInterface |
||
46 | */ |
||
47 | protected $articleStatistics; |
||
48 | |||
49 | /** |
||
50 | * @var ExternalArticleInterface |
||
51 | */ |
||
52 | protected $externalArticle; |
||
53 | |||
54 | /** |
||
55 | * @var int |
||
56 | */ |
||
57 | protected $commentsCount = 0; |
||
58 | |||
59 | /** @var Place */ |
||
60 | protected $geoIpPlace; |
||
61 | |||
62 | /** @var bool */ |
||
63 | protected $isPublishedToAppleNews = false; |
||
64 | |||
65 | /** @var AppleNewsArticleInterface|null */ |
||
66 | protected $appleNewsArticle; |
||
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | public function setId($id) |
||
75 | |||
76 | /** |
||
77 | * {@inheritdoc} |
||
78 | */ |
||
79 | public function getPackage(): ?PackageInterface |
||
83 | |||
84 | /** |
||
85 | * {@inheritdoc} |
||
86 | */ |
||
87 | public function setPackage(?PackageInterface $package) |
||
91 | |||
92 | /** |
||
93 | * {@inheritdoc} |
||
94 | */ |
||
95 | public function isPublishedFBIA(): bool |
||
99 | |||
100 | /** |
||
101 | * {@inheritdoc} |
||
102 | */ |
||
103 | public function setPublishedFBIA(bool $isPublished) |
||
107 | |||
108 | /** |
||
109 | * {@inheritdoc} |
||
110 | */ |
||
111 | public function getArticleStatistics(): ?ArticleStatisticsInterface |
||
115 | |||
116 | /** |
||
117 | * {@inheritdoc} |
||
118 | */ |
||
119 | public function setArticleStatistics(ArticleStatisticsInterface $articleStatistics): void |
||
124 | |||
125 | /** |
||
126 | * {@inheritdoc} |
||
127 | */ |
||
128 | public function getExternalArticle(): ?ExternalArticleInterface |
||
132 | |||
133 | /** |
||
134 | * {@inheritdoc} |
||
135 | */ |
||
136 | public function setExternalArticle(ExternalArticleInterface $externalArticle): void |
||
140 | |||
141 | public function getPackageExternalData() |
||
154 | |||
155 | public function getCommentsCount(): int |
||
163 | |||
164 | public function setCommentsCount(int $commentsCount): void |
||
168 | |||
169 | public function getGeoIpPlaces(): array |
||
180 | |||
181 | public function isPublishedToAppleNews(): bool |
||
185 | |||
186 | public function setPublishedToAppleNews(bool $isPublished): void |
||
190 | |||
191 | public function getAppleNewsArticle(): ?AppleNewsArticleInterface |
||
195 | |||
196 | public function setAppleNewsArticle(?AppleNewsArticleInterface $appleNewsArticle): void |
||
200 | |||
201 | public function setUpdatedAt(\DateTime $updatedAt) |
||
207 | } |
||
208 |