Total Complexity | 9 |
Total Lines | 64 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | class Article extends BaseArticle implements ArticleInterface |
||
14 | { |
||
15 | /** @var AdminUserInterface|null */ |
||
16 | private $author; |
||
17 | |||
18 | /** @var Collection|ChannelInterface[] */ |
||
19 | private $channels; |
||
20 | |||
21 | public function __construct() |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @inheritdoc |
||
30 | */ |
||
31 | public function getAuthor(): ?AdminUserInterface |
||
32 | { |
||
33 | return $this->author; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @inheritdoc |
||
38 | */ |
||
39 | public function setAuthor(?AdminUserInterface $author): void |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * @inheritdoc |
||
46 | */ |
||
47 | public function getChannels(): Collection |
||
48 | { |
||
49 | return $this->channels; |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * @inheritdoc |
||
54 | */ |
||
55 | public function hasChannel(ChannelInterface $channel): bool |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * @inheritdoc |
||
62 | */ |
||
63 | public function addChannel(ChannelInterface $channel): void |
||
67 | } |
||
68 | } |
||
69 | |||
70 | /** |
||
71 | * @inheritdoc |
||
72 | */ |
||
73 | public function removeChannel(ChannelInterface $channel): void |
||
77 | } |
||
78 | } |
||
80 |