1 | <?php |
||
9 | class CDatabaseModel implements \Anax\DI\IInjectionAware |
||
10 | { |
||
11 | use \Anax\DI\TInjectable; |
||
12 | |||
13 | |||
14 | /** |
||
15 | * Build a select-query. |
||
16 | * |
||
17 | * @param string $columns which columns to select. |
||
18 | * |
||
19 | * @return $this |
||
20 | */ |
||
21 | public function query($columns = '*') |
||
28 | |||
29 | /** |
||
30 | * Build the where part. |
||
31 | * |
||
32 | * @param string $condition for building the where part of the query. |
||
33 | * |
||
34 | * @return $this |
||
35 | */ |
||
36 | public function where($condition) |
||
42 | |||
43 | /** |
||
44 | * Build the where part. |
||
45 | * |
||
46 | * @param string $condition for building the where part of the query. |
||
47 | * |
||
48 | * @return $this |
||
49 | */ |
||
50 | public function andWhere($condition) |
||
56 | |||
57 | public function orderBy($condition) |
||
63 | |||
64 | /** |
||
65 | * Execute the query built. |
||
66 | * |
||
67 | * @param string $query custom query. |
||
68 | * |
||
69 | * @return $this |
||
70 | */ |
||
71 | public function execute($params = []) |
||
79 | } |
Since your code implements the magic getter
_get
, this function will be called for any read access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.