Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php defined('SYSPATH') OR die('No direct script access.'); |
||
14 | public static function initialize(Jam_Meta $meta) |
||
15 | { |
||
16 | parent::initialize($meta); |
||
17 | |||
18 | $meta |
||
19 | ->fields(array( |
||
20 | 'amount' => Jam::field('float'), |
||
21 | )) |
||
22 | ->validator('amount', array('numeric' => array('between' => array(0, 1)))); |
||
23 | } |
||
24 | |||
34 |
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.