| Total Complexity | 6 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | final class Adapter implements RegistryInterface |
||
| 13 | { |
||
| 14 | private AnotherRegistryInterface $registry; |
||
|
|
|||
| 15 | |||
| 16 | public function __construct(AnotherRegistryInterface $registry) |
||
| 17 | { |
||
| 18 | $this->registry = $registry; |
||
| 19 | } |
||
| 20 | |||
| 21 | public function setFirst(string $value) |
||
| 22 | { |
||
| 23 | $this->registry->setData($value); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function setSecond(string $value) |
||
| 27 | { |
||
| 28 | $this->registry->setData($value); |
||
| 29 | } |
||
| 30 | |||
| 31 | public function getFirst(): string |
||
| 32 | { |
||
| 33 | return (string) $this->registry->getData()[0]; |
||
| 34 | } |
||
| 35 | |||
| 36 | public function getSecond(): string |
||
| 37 | { |
||
| 38 | return (string) $this->registry->getData()[1]; |
||
| 39 | } |
||
| 40 | } |
||
| 41 |