| Total Complexity | 3 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class ApplicationInfoPlugin implements ResourceProviderInterface, ApiResourceFactoryProviderInterface, ApieAwareInterface |
||
| 15 | { |
||
| 16 | use ApieAwareTrait; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string|null |
||
| 20 | */ |
||
| 21 | private $appName; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string|null |
||
| 25 | */ |
||
| 26 | private $environment; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var string|null |
||
| 30 | */ |
||
| 31 | private $hash; |
||
| 32 | |||
| 33 | public function __construct( |
||
| 34 | ?string $appName = null, |
||
| 35 | ?string $environment = null, |
||
| 36 | ?string $hash = null |
||
| 37 | ) { |
||
| 38 | $this->appName = $appName; |
||
| 39 | $this->environment = $environment; |
||
| 40 | $this->hash = $hash; |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritDoc} |
||
| 45 | */ |
||
| 46 | public function getResources(): array |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * {@inheritDoc} |
||
| 53 | */ |
||
| 54 | public function getApiResourceFactory(): ApiResourceFactoryInterface |
||
| 57 | } |
||
| 58 | } |
||
| 59 |