Total Complexity | 4 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
13 | trait TContent |
||
14 | { |
||
15 | protected string $contentKey = ''; |
||
16 | |||
17 | 17 | public function setContentKey(string $contentKey): self |
|
18 | { |
||
19 | 17 | $this->contentKey = $contentKey; |
|
20 | 17 | return $this; |
|
21 | } |
||
22 | |||
23 | /** |
||
24 | * @throws MapperException |
||
25 | * @return string |
||
26 | */ |
||
27 | 10 | public function getContentKey(): string |
|
28 | { |
||
29 | 10 | $this->checkContentKey(); |
|
30 | 9 | return $this->contentKey; |
|
31 | } |
||
32 | |||
33 | /** |
||
34 | * @throws MapperException |
||
35 | */ |
||
36 | 10 | protected function checkContentKey(): void |
|
40 | } |
||
41 | } |
||
42 | } |
||
43 |