1 | <?php |
||
12 | final class ArticleKeywordAdder implements ArticleKeywordAdderInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var KeywordFactoryInterface |
||
16 | */ |
||
17 | private $keywordFactory; |
||
18 | |||
19 | /** |
||
20 | * @var RepositoryInterface |
||
21 | */ |
||
22 | private $articleKeywordRepository; |
||
23 | |||
24 | public function __construct(KeywordFactoryInterface $keywordFactory, RepositoryInterface $articleKeywordRepository) |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | public function add(ArticleInterface $article, string $name) |
||
44 | } |
||
45 |