Total Complexity | 5 |
Total Lines | 74 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class UpdateEntity implements MutatorInterface |
||
15 | { |
||
16 | const UPDATED_AT = 'updated_at'; |
||
17 | |||
18 | /** |
||
19 | * @var array |
||
20 | */ |
||
21 | protected $data = array(); |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $dateFormat = 'Y-m-d H:i:s'; |
||
27 | |||
28 | /** |
||
29 | * @var integer |
||
30 | */ |
||
31 | protected $id; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | protected $primary = 'id'; |
||
37 | |||
38 | /** |
||
39 | * @var string |
||
40 | */ |
||
41 | protected $table = ''; |
||
42 | |||
43 | /** |
||
44 | * @var boolean |
||
45 | */ |
||
46 | protected $timestamp = true; |
||
47 | |||
48 | /** |
||
49 | * Initializes the mutator instance. |
||
50 | * |
||
51 | * @param integer $id |
||
52 | * @param array $data |
||
53 | */ |
||
54 | 9 | public function __construct($id, $data) |
|
59 | 9 | } |
|
60 | |||
61 | /** |
||
62 | * Mutates the specified query instance. |
||
63 | * |
||
64 | * @param \Rougin\Windstorm\QueryInterface $query |
||
65 | */ |
||
66 | 9 | public function set(QueryInterface $query) |
|
90 |