1 | <?php |
||
26 | class Article extends BaseArticle implements ArticleInterface |
||
27 | { |
||
28 | use TenantAwareTrait, OrganizationAwareTrait, PaywallSecuredTrait, ArticleEventsTrait, ContentListsAwareTrait; |
||
29 | |||
30 | /** |
||
31 | * @var PackageInterface |
||
32 | */ |
||
33 | protected $package; |
||
34 | |||
35 | /** |
||
36 | * @var bool |
||
37 | */ |
||
38 | protected $isPublishedFBIA = false; |
||
39 | |||
40 | /** |
||
41 | * @var ArticleStatisticsInterface |
||
42 | */ |
||
43 | protected $articleStatistics; |
||
44 | |||
45 | /** |
||
46 | * @var ExternalArticleInterface |
||
47 | */ |
||
48 | protected $externalArticle; |
||
49 | |||
50 | /** |
||
51 | * @var int |
||
52 | */ |
||
53 | protected $commentsCount; |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | public function setId($id) |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | public function getPackage(): ?PackageInterface |
||
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | public function setPackage(PackageInterface $package) |
||
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | public function isPublishedFBIA(): bool |
||
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | public function setPublishedFBIA(bool $isPublished) |
||
94 | |||
95 | /** |
||
96 | * {@inheritdoc} |
||
97 | */ |
||
98 | public function getArticleStatistics(): ?ArticleStatisticsInterface |
||
102 | |||
103 | /** |
||
104 | * {@inheritdoc} |
||
105 | */ |
||
106 | public function setArticleStatistics(ArticleStatisticsInterface $articleStatistics): void |
||
111 | |||
112 | /** |
||
113 | * {@inheritdoc} |
||
114 | */ |
||
115 | public function getExternalArticle(): ?ExternalArticleInterface |
||
119 | |||
120 | /** |
||
121 | * {@inheritdoc} |
||
122 | */ |
||
123 | public function setExternalArticle(ExternalArticleInterface $externalArticle): void |
||
127 | |||
128 | public function getPackageExternalData() |
||
141 | |||
142 | public function getCommentsCount(): int |
||
150 | |||
151 | public function setCommentsCount(int $commentsCount): void |
||
155 | } |
||
156 |