| Total Complexity | 9 |
| Total Lines | 68 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class Article extends BaseArticle implements ArticleInterface |
||
| 14 | { |
||
| 15 | /** @var AdminUserInterface|null */ |
||
| 16 | protected $author; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var Collection|ChannelInterface[] |
||
| 20 | * |
||
| 21 | * @psalm-var Collection<array-key, ChannelInterface> |
||
| 22 | */ |
||
| 23 | protected $channels; |
||
| 24 | |||
| 25 | public function __construct() |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @inheritdoc |
||
| 34 | */ |
||
| 35 | public function getAuthor(): ?AdminUserInterface |
||
| 36 | { |
||
| 37 | return $this->author; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @inheritdoc |
||
| 42 | */ |
||
| 43 | public function setAuthor(?AdminUserInterface $author): void |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @inheritdoc |
||
| 50 | */ |
||
| 51 | public function getChannels(): Collection |
||
| 52 | { |
||
| 53 | return $this->channels; |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @inheritdoc |
||
| 58 | */ |
||
| 59 | public function hasChannel(ChannelInterface $channel): bool |
||
| 62 | } |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @inheritdoc |
||
| 66 | */ |
||
| 67 | public function addChannel(ChannelInterface $channel): void |
||
| 71 | } |
||
| 72 | } |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @inheritdoc |
||
| 76 | */ |
||
| 77 | public function removeChannel(ChannelInterface $channel): void |
||
| 81 | } |
||
| 82 | } |
||
| 84 |