| 1 | <?php |
||
| 17 | final class LazySuiteRegistry implements SuiteRegistryInterface |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var SuiteFactoryInterface |
||
| 21 | */ |
||
| 22 | private $suiteFactory; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | private $suiteDefinitions = []; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var array |
||
| 31 | */ |
||
| 32 | private $suites = []; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param SuiteFactoryInterface $suiteFactory |
||
| 36 | */ |
||
| 37 | public function __construct(SuiteFactoryInterface $suiteFactory) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param string $name |
||
| 44 | * @param array $configuration |
||
| 45 | */ |
||
| 46 | public function addSuite($name, array $configuration) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * {@inheritdoc} |
||
| 53 | */ |
||
| 54 | public function getSuite($name) |
||
| 66 | |||
| 67 | /** |
||
| 68 | * {@inheritdoc} |
||
| 69 | */ |
||
| 70 | public function getSuites() |
||
| 79 | } |
||
| 80 |