diff --git a/application/symfony/src/Attribut/LayerRepositoryFactoryServiceAttribut.php b/application/symfony/src/Attribut/LayerRepositoryFactoryServiceAttribut.php new file mode 100644 index 0000000..c731518 --- /dev/null +++ b/application/symfony/src/Attribut/LayerRepositoryFactoryServiceAttribut.php @@ -0,0 +1,34 @@ +layerRepositoryFactoryService = $layerRepositoryFactoryService; + } + + /** + * @return LayerRepositoryFactoryServiceInterface + */ + public function getLayerRepositoryFactoryService(): LayerRepositoryFactoryServiceInterface + { + return $this->layerRepositoryFactoryService; + } +} diff --git a/application/symfony/src/Attribut/LayerRepositoryFactoryServiceAttributInterface.php b/application/symfony/src/Attribut/LayerRepositoryFactoryServiceAttributInterface.php new file mode 100644 index 0000000..f90e984 --- /dev/null +++ b/application/symfony/src/Attribut/LayerRepositoryFactoryServiceAttributInterface.php @@ -0,0 +1,21 @@ +layerRepositoryFactoryServiceAttribut = new class() implements LayerRepositoryFactoryServiceAttributInterface { + use LayerRepositoryFactoryServiceAttribut; + }; + } + + public function testConstruct(): void + { + $this->expectException(\TypeError::class); + $this->layerRepositoryFactoryServiceAttribut->getLayerRepositoryFactoryService(); + } + + public function testAccessors(): void + { + $layerRepositoryFactoryService = $this->createMock(LayerRepositoryFactoryServiceInterface::class); + $this->assertNull($this->layerRepositoryFactoryServiceAttribut->setLayerRepositoryFactoryService($layerRepositoryFactoryService)); + $this->assertEquals($layerRepositoryFactoryService, $this->layerRepositoryFactoryServiceAttribut->getLayerRepositoryFactoryService()); + } +}