| Total Complexity | 4 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | abstract class AbstractFixture extends \Doctrine\Common\DataFixtures\AbstractFixture |
||
| 14 | {
|
||
| 15 | /** |
||
| 16 | * @var ReferenceRepository |
||
| 17 | */ |
||
| 18 | protected $referenceRepository; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param string $name |
||
| 22 | * |
||
| 23 | * @return bool |
||
| 24 | */ |
||
| 25 | public function hasCollectionReference(string $name): bool |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param string $name |
||
| 32 | * |
||
| 33 | * @return iterable |
||
| 34 | */ |
||
| 35 | public function getCollectionReference(string $name): iterable |
||
| 36 | {
|
||
| 37 | return $this->referenceRepository->getCollectionReference($name); |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param string $name |
||
| 42 | * @param iterable $collection |
||
| 43 | */ |
||
| 44 | public function setCollectionReference(string $name, iterable $collection): void |
||
| 45 | {
|
||
| 46 | $this->referenceRepository->setCollectionReference($name, $collection); |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param string $name |
||
| 51 | * @param iterable $collection |
||
| 52 | */ |
||
| 53 | public function addCollectionReference(string $name, iterable $collection): void |
||
| 56 | } |
||
| 57 | } |
||
| 58 |