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