| Total Complexity | 7 |
| Total Lines | 62 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class AnotherRegistryAdapter extends AnotherRegistry implements RegistryInterface |
||
| 18 | { |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var RegistryInterface |
||
| 22 | */ |
||
| 23 | protected $registry; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var AnotherRegistryInterface |
||
| 27 | */ |
||
| 28 | protected $anotherRegistry; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * AnotherRegistryAdapter constructor. |
||
| 32 | * @param RegistryInterface $registry |
||
| 33 | */ |
||
| 34 | public function __construct(RegistryInterface $registry) |
||
| 35 | { |
||
| 36 | $this->registry = $registry; |
||
| 37 | } |
||
| 38 | |||
| 39 | public function setFirstValue(string $firstValue) |
||
| 40 | { |
||
| 41 | $this->setKey((int)$firstValue); |
||
| 42 | } |
||
| 43 | |||
| 44 | public function setSecondValue(string $secondValue) |
||
| 45 | { |
||
| 46 | $this->setSlug((int)$secondValue); |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | public function getFirstValue(): string |
||
| 53 | { |
||
| 54 | return (string)$this->getKey(); |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return string |
||
| 59 | */ |
||
| 60 | public function getSecondValue(): string |
||
| 61 | { |
||
| 62 | return (string)$this->getSlug(); |
||
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @param mixed $key |
||
| 67 | */ |
||
| 68 | protected function setKey($key) |
||
| 69 | { |
||
| 70 | $this->key = $key; |
||
| 71 | } |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @param mixed $slug |
||
| 75 | */ |
||
| 76 | protected function setSlug($slug) |
||
| 79 | } |
||
| 80 | } |