| 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.'); |
||
| 15 | public static function initialize(Jam_Meta $meta) |
||
| 16 | { |
||
| 17 | parent::initialize($meta); |
||
| 18 | |||
| 19 | $meta |
||
| 20 | ->associations(array( |
||
| 21 | 'promo_codes' => Jam::association('hasmany', array( |
||
| 22 | 'inverse_of' => 'promotion', |
||
| 23 | 'foreign_key' => 'promotion_id', |
||
| 24 | )), |
||
| 25 | )); |
||
| 26 | } |
||
| 27 | |||
| 56 |
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@propertyannotation 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.