1 | <?php |
||
19 | trait ArticlesAwareTrait |
||
20 | { |
||
21 | /** |
||
22 | * @var Collection |
||
23 | */ |
||
24 | protected $articles; |
||
25 | |||
26 | /** |
||
27 | * @return Collection |
||
28 | */ |
||
29 | public function getArticles(): Collection |
||
33 | |||
34 | /** |
||
35 | * @param Collection $articles |
||
36 | */ |
||
37 | public function setArticles(Collection $articles): void |
||
41 | |||
42 | /** |
||
43 | * @param ArticleInterface $article |
||
44 | */ |
||
45 | public function addArticle(ArticleInterface $article): void |
||
49 | } |
||
50 |