| Total Complexity | 4 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | class ServiceFactoryRegistration extends ARegistration { |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var string |
||
| 35 | * @psalm-var string|class-string |
||
| 36 | */ |
||
| 37 | private $name; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @var callable |
||
| 41 | * @psalm-var callable(\Psr\Container\ContainerInterface): mixed |
||
| 42 | */ |
||
| 43 | private $factory; |
||
| 44 | |||
| 45 | /** @var bool */ |
||
| 46 | private $shared; |
||
| 47 | |||
| 48 | public function __construct(string $appId, |
||
| 49 | string $alias, |
||
| 50 | callable $target, |
||
| 51 | bool $shared) { |
||
| 52 | parent::__construct($appId); |
||
| 53 | $this->name = $alias; |
||
| 54 | $this->factory = $target; |
||
| 55 | $this->shared = $shared; |
||
| 56 | } |
||
| 57 | |||
| 58 | public function getName(): string { |
||
| 59 | return $this->name; |
||
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @psalm-return callable(\Psr\Container\ContainerInterface): mixed |
||
| 64 | */ |
||
| 65 | public function getFactory(): callable { |
||
| 67 | } |
||
| 68 | |||
| 69 | public function isShared(): bool { |
||
| 71 | } |
||
| 72 | } |
||
| 73 |