| Total Complexity | 5 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | trait EmbedSingleValueTrait |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var SingleValueInterface |
||
| 13 | */ |
||
| 14 | protected $innerSingleValue; |
||
| 15 | |||
| 16 | public function get() |
||
| 19 | } |
||
| 20 | |||
| 21 | public function delete() |
||
| 22 | { |
||
| 23 | $this->innerSingleValue->delete(); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function exists() |
||
| 27 | { |
||
| 28 | return $this->innerSingleValue->exists(); |
||
| 29 | } |
||
| 30 | |||
| 31 | public function set($value) |
||
| 32 | { |
||
| 33 | $this->innerSingleValue->set($value); |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return SingleValueInterface |
||
| 38 | */ |
||
| 39 | public function getInnerSingleValue() |
||
| 42 | } |
||
| 43 | } |
||
| 44 |