Total Complexity | 4 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
14 | final class Embeddable extends AbstractAnnotation |
||
15 | { |
||
16 | public const NAME = 'embeddable'; |
||
17 | public const SCHEMA = [ |
||
18 | 'role' => Parser::STRING, |
||
19 | 'mapper' => Parser::STRING, |
||
20 | 'columnPrefix' => Parser::STRING, |
||
21 | 'columns' => [Column::class], |
||
22 | ]; |
||
23 | |||
24 | /** @var string|null */ |
||
25 | protected $role; |
||
26 | |||
27 | /** @var string|null */ |
||
28 | protected $mapper; |
||
29 | |||
30 | /** @var string */ |
||
31 | protected $columnPrefix = ''; |
||
32 | |||
33 | /** @var array */ |
||
34 | protected $columns = []; |
||
35 | |||
36 | /** |
||
37 | * @return string|null |
||
38 | */ |
||
39 | public function getRole(): ?string |
||
40 | { |
||
41 | return $this->role; |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * @return string|null |
||
46 | */ |
||
47 | public function getMapper(): ?string |
||
48 | { |
||
49 | return $this->mapper; |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * @return string |
||
54 | */ |
||
55 | public function getColumnPrefix(): string |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * @return Column[] |
||
62 | */ |
||
63 | public function getColumns(): array |
||
66 | } |
||
67 | } |