| Total Complexity | 2 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class DaftObjectRepositoryTest extends Base |
||
| 18 | { |
||
| 19 | public static function DaftObjectRepositoryByType( |
||
| 20 | string $type |
||
| 21 | ) : DaftObjectRepository { |
||
| 22 | return TestObjectRepository::DaftObjectRepositoryByType( |
||
| 23 | $type, |
||
| 24 | Factory::create('sqlite::memory:') |
||
| 25 | ); |
||
| 26 | } |
||
| 27 | |||
| 28 | public static function DaftObjectRepositoryByDaftObject( |
||
| 29 | DefinesOwnIdPropertiesInterface $object |
||
| 30 | ) : DaftObjectRepository { |
||
| 31 | return TestObjectRepository::DaftObjectRepositoryByDaftObject( |
||
| 32 | $object, |
||
| 33 | Factory::create('sqlite::memory:') |
||
| 34 | ); |
||
| 37 |