1 | <?php |
||
20 | trait StringCodeTrait { |
||
21 | |||
22 | /** |
||
23 | * Code. |
||
24 | * |
||
25 | * @var string|null |
||
26 | */ |
||
27 | private $code; |
||
28 | |||
29 | /** |
||
30 | * Get the code. |
||
31 | * |
||
32 | * @return string|null Returns the code. |
||
33 | */ |
||
34 | 85 | public function getCode(): ?string { |
|
37 | |||
38 | /** |
||
39 | * Set the code. |
||
40 | * |
||
41 | * @param string|null $code The code. |
||
42 | * @return self Returns tis instance. |
||
43 | */ |
||
44 | 60 | public function setCode(?string $code): self { |
|
48 | } |