Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
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 | ->table('purchase_items') |
||
20 | ->fields(array( |
||
21 | 'is_payable' => Jam::field('boolean', array( |
||
22 | 'default' => TRUE |
||
23 | )) |
||
24 | )); |
||
25 | } |
||
26 | |||
53 |
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.