| Total Complexity | 5 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class AuraSessionSegment implements SessionSegment |
||
| 11 | { |
||
| 12 | private Segment $segment; |
||
| 13 | |||
| 14 | 6 | public function __construct(Segment $segment) |
|
| 15 | { |
||
| 16 | 6 | $this->segment = $segment; |
|
| 17 | 6 | } |
|
| 18 | |||
| 19 | 1 | public function get(string $identity) |
|
| 20 | { |
||
| 21 | 1 | return $this->segment->get($identity); |
|
| 22 | } |
||
| 23 | |||
| 24 | 1 | public function getFlash(string $identity) |
|
| 25 | { |
||
| 26 | 1 | return $this->segment->getFlash($identity); |
|
| 27 | } |
||
| 28 | |||
| 29 | 1 | public function set(string $identity, $value): void |
|
| 30 | { |
||
| 31 | 1 | $this->segment->set($identity, $value); |
|
| 32 | 1 | } |
|
| 33 | |||
| 34 | 1 | public function setFlash(string $identity, $value): void |
|
| 37 | 1 | } |
|
| 38 | } |
||
| 39 |