1 | <?php |
||
14 | class Base |
||
15 | { |
||
16 | /** |
||
17 | * @var int |
||
18 | */ |
||
19 | protected $id; |
||
20 | |||
21 | /** |
||
22 | * @var array |
||
23 | */ |
||
24 | protected $attributesRaw = []; |
||
25 | 11 | ||
26 | /** |
||
27 | 11 | * Sets the attributes of this entity. |
|
28 | 11 | * |
|
29 | 11 | * @param array $attributes |
|
30 | 11 | * |
|
31 | * @return $this |
||
32 | */ |
||
33 | public function setEntityAttributes(array $attributes) |
||
46 | 4 | ||
47 | 4 | /** |
|
48 | 1 | * Gets the attributes of this entity. |
|
49 | 4 | * |
|
50 | * @return array |
||
51 | */ |
||
52 | 4 | public function getArrayCopy() |
|
76 | |||
77 | /** |
||
78 | 9 | * @return int |
|
79 | */ |
||
80 | 9 | public function getId() |
|
84 | |||
85 | /** |
||
86 | * @param int $id |
||
87 | * |
||
88 | * @return Base |
||
89 | */ |
||
90 | public function setId($id) |
||
96 | |||
97 | /** |
||
98 | * @param string $key |
||
99 | * @return mixed |
||
100 | */ |
||
101 | public function get(string $key) |
||
111 | } |
||
112 |