1 | <?php |
||
8 | class Queue extends ActiveRecord |
||
9 | { |
||
10 | /** |
||
11 | * @inheritdoc |
||
12 | */ |
||
13 | 2 | public static function tableName() |
|
17 | |||
18 | /** |
||
19 | * @inheritdoc |
||
20 | */ |
||
21 | 4 | public function behaviors() |
|
29 | |||
30 | /** |
||
31 | * @inheritdoc |
||
32 | */ |
||
33 | 1 | public function rules() |
|
39 | |||
40 | /** |
||
41 | * @inheritdoc |
||
42 | */ |
||
43 | 1 | public function attributeLabels() |
|
58 | |||
59 | 1 | public function getExecutionTime() |
|
60 | { |
||
61 | 1 | return $this->exec_time+$this->created_at; |
|
62 | } |
||
63 | |||
64 | public function getStatus($id) |
||
75 | } |
||
76 |
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.