1 | <?php defined('SYSPATH') OR die('No direct script access.'); |
||
10 | class Kohana_Model_Promotion_Promocode extends Model_Promotion { |
||
11 | |||
12 | /** |
||
13 | * @codeCoverageIgnore |
||
14 | */ |
||
15 | public static function initialize(Jam_Meta $meta) |
||
27 | |||
28 | 1 | public function applies_to(Model_Brand_Purchase $brand_purchase) |
|
32 | |||
33 | /** |
||
34 | * @codeCoverageIgnore |
||
35 | */ |
||
36 | public function validate_purchase(Model_Purchase $brand_purchase) |
||
40 | |||
41 | 1 | public function matches_brand_purchase_promo_code(Model_Brand_Purchase $brand_purchase) |
|
50 | |||
51 | 1 | public function has_promo_code(Model_Promo_Code $promo_code) |
|
55 | } |
||
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@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.