| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class GlossaryVariantService |
||
| 13 | { |
||
| 14 | private GlossaryVariantRepositoryInterface $glossaryVariantRepository; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * GlossaryVariantService constructor. |
||
| 18 | * @param GlossaryVariantRepositoryInterface $glossaryVariantRepository |
||
| 19 | */ |
||
| 20 | public function __construct(GlossaryVariantRepositoryInterface $glossaryVariantRepository) |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Create one glossary variant that has the same name of the Glossary term |
||
| 27 | * |
||
| 28 | * @param Glossary $glossary |
||
| 29 | * @return GlossaryVariant |
||
| 30 | */ |
||
| 31 | public function createGlossaryVariant(Glossary $glossary): GlossaryVariant |
||
| 45 |