| Total Complexity | 8 |
| Total Lines | 86 |
| Duplicated Lines | 0 % |
| Coverage | 76.47% |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class Item implements ItemInterface |
||
| 20 | { |
||
| 21 | /** @var string Item's identifier. */ |
||
| 22 | protected $id; |
||
| 23 | |||
| 24 | /** @var array Item's properties. */ |
||
| 25 | protected $properties = []; |
||
| 26 | |||
| 27 | 1 | public function __construct(string $id) |
|
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritdoc} |
||
| 34 | */ |
||
| 35 | 1 | public function setId(string $id): BaseInterface |
|
| 36 | { |
||
| 37 | 1 | $this->id = $id; |
|
| 38 | |||
| 39 | 1 | return $this; |
|
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritdoc} |
||
| 44 | */ |
||
| 45 | 1 | public function getId(): string |
|
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Implements \ArrayAccess. |
||
| 52 | * |
||
| 53 | * @param mixed $offset |
||
| 54 | * |
||
| 55 | * @return bool |
||
| 56 | */ |
||
| 57 | #[\ReturnTypeWillChange] |
||
| 61 | } |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Implements \ArrayAccess. |
||
| 65 | * |
||
| 66 | * @param mixed $offset |
||
| 67 | * |
||
| 68 | * @return mixed|null |
||
| 69 | */ |
||
| 70 | #[\ReturnTypeWillChange] |
||
| 74 | } |
||
| 75 | |||
| 76 | /** |
||
| 77 | * Implements \ArrayAccess. |
||
| 78 | * |
||
| 79 | * @param mixed $offset |
||
| 80 | * @param mixed $value |
||
| 81 | */ |
||
| 82 | #[\ReturnTypeWillChange] |
||
| 86 | } |
||
| 87 | |||
| 88 | /** |
||
| 89 | * Implements \ArrayAccess. |
||
| 90 | * |
||
| 91 | * @param mixed $offset |
||
| 92 | */ |
||
| 93 | #[\ReturnTypeWillChange] |
||
| 97 | } |
||
| 98 | |||
| 99 | /** |
||
| 100 | * {@inheritdoc} |
||
| 101 | */ |
||
| 102 | public function toArray(): array |
||
| 107 |