1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace AlecRabbit\Spinner\Container; |
||
6 | |||
7 | use AlecRabbit\Spinner\Container\Contract\IService; |
||
8 | |||
9 | final readonly class Service implements IService |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
10 | { |
||
11 | public function __construct( |
||
12 | private mixed $value, |
||
13 | private bool $storable, |
||
14 | private string $id, |
||
15 | ) { |
||
16 | } |
||
17 | |||
18 | public function getValue(): mixed |
||
19 | { |
||
20 | return $this->value; |
||
21 | } |
||
22 | |||
23 | public function isStorable(): bool |
||
24 | { |
||
25 | return $this->storable; |
||
26 | } |
||
27 | |||
28 | public function getId(): string |
||
29 | { |
||
30 | return $this->id; |
||
31 | } |
||
32 | } |
||
33 |