1 | <?php |
||
8 | class ModelWithObject |
||
9 | { |
||
10 | /** |
||
11 | * ModelWithObject constructor. |
||
12 | * @param DB $db |
||
13 | * @param object $entity |
||
14 | * @param Cache $cache |
||
15 | */ |
||
16 | 4 | public function __construct(DB $db, $entity, Cache $cache) |
|
25 | /** |
||
26 | * @return void |
||
27 | */ |
||
28 | 1 | public function create() |
|
46 | |||
47 | /** |
||
48 | * @param array $columns columns to update. if columns is empty array, update all of the columns |
||
49 | * @return int rows updated |
||
50 | */ |
||
51 | 2 | public function update(array $columns=[]) |
|
73 | |||
74 | /** |
||
75 | * @return int rows deleted |
||
76 | */ |
||
77 | 1 | public function delete() |
|
84 | |||
85 | 3 | protected function getColumns() |
|
93 | |||
94 | /** |
||
95 | * @var object |
||
96 | */ |
||
97 | protected $object; |
||
98 | |||
99 | /** |
||
100 | * @var ModelContainer |
||
101 | */ |
||
102 | protected $entity; |
||
103 | /** |
||
104 | * @var DB |
||
105 | */ |
||
106 | protected $db; |
||
107 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.