1 | <?php defined('SYSPATH') OR die('No direct script access.'); |
||
14 | abstract class Kohana_Jam_Field_Polymorphic extends Jam_Field_String { |
||
15 | |||
16 | /** |
||
17 | * @var boolean this is a polymorphic field |
||
18 | */ |
||
19 | public $polymorphic = TRUE; |
||
20 | |||
21 | /** |
||
22 | * Sets the default for the field to the model. |
||
23 | * |
||
24 | * @param string $model |
||
|
|||
25 | * @param string $column |
||
26 | * @return void |
||
27 | */ |
||
28 | 5 | public function initialize(Jam_Meta $meta, $name) |
|
29 | { |
||
30 | 5 | parent::initialize($meta, $name); |
|
31 | |||
32 | 5 | $this->default = $this->model; |
|
33 | 5 | } |
|
34 | |||
35 | /** |
||
36 | * Casts to a string, preserving NULLs along the way. |
||
37 | * |
||
38 | * @param mixed $value |
||
39 | * @return string |
||
40 | */ |
||
41 | 6 | public function set(Jam_Validated $model, $value, $is_changed) |
|
52 | |||
53 | } // End Kohana_Jam_Field_Polymorphic |
||
54 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.