| Total Complexity | 5 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class RegistryAdapter implements RegistryInterface |
||
| 17 | { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var AnotherRegistryInterface |
||
| 21 | */ |
||
| 22 | protected $registry; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * RegistryAdapter constructor. |
||
| 26 | * @param AnotherRegistryInterface $registry |
||
| 27 | */ |
||
| 28 | public function __construct(AnotherRegistryInterface $registry) |
||
| 29 | { |
||
| 30 | $this->registry = $registry; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param string $value |
||
| 35 | */ |
||
| 36 | public function setFirst(string $value) |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $value |
||
| 43 | */ |
||
| 44 | public function setSecond(string $value) |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | public function getFirst(): string |
||
| 53 | { |
||
| 54 | return (string) $this->registry->getData()[0]; |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return string |
||
| 59 | */ |
||
| 60 | public function getSecond(): string |
||
| 63 | } |
||
| 64 | } |
||
| 65 |