1 | <?php |
||
11 | abstract class BaseEntity implements EntityInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var integer id сущности |
||
15 | */ |
||
16 | public $id; |
||
17 | |||
18 | /** |
||
19 | * @var string Дата и время создания сущности |
||
20 | */ |
||
21 | public $created_at; |
||
22 | |||
23 | /** |
||
24 | * @var string Дата и время изменения сущности |
||
25 | */ |
||
26 | public $updated_at; |
||
27 | |||
28 | /** |
||
29 | * @var integer id пользователя ответственного за сущность |
||
30 | */ |
||
31 | public $responsible_user_id; |
||
32 | |||
33 | /** |
||
34 | * @var array |
||
35 | */ |
||
36 | protected $fieldList = []; |
||
37 | |||
38 | use FieldList; |
||
39 | |||
40 | /** |
||
41 | * @return array |
||
42 | */ |
||
43 | 24 | public function get() |
|
53 | |||
54 | /** |
||
55 | * @param $array |
||
56 | */ |
||
57 | 30 | public function set($array) |
|
61 | |||
62 | /** |
||
63 | * Задаем время обновления, если уже не задано |
||
64 | */ |
||
65 | 13 | protected function setUpdatedTime() |
|
71 | } |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.