1 | <?php |
||
21 | class SetOperation extends Component |
||
22 | { |
||
23 | /** |
||
24 | * The name of the column that is being updated. |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | public $column; |
||
29 | |||
30 | /** |
||
31 | * The new value. |
||
32 | * |
||
33 | * @var string |
||
34 | */ |
||
35 | public $value; |
||
36 | |||
37 | /** |
||
38 | * Constructor. |
||
39 | * |
||
40 | * @param string $column Field's name.. |
||
|
|||
41 | * @param string $value New value. |
||
42 | */ |
||
43 | 26 | public function __construct($column = null, $value = null) |
|
48 | |||
49 | /** |
||
50 | * @param Parser $parser the parser that serves as context |
||
51 | * @param TokensList $list the list of tokens that are being parsed |
||
52 | * @param array $options parameters for parsing |
||
53 | * |
||
54 | * @return SetOperation[] |
||
55 | */ |
||
56 | 26 | public static function parse(Parser $parser, TokensList $list, array $options = array()) |
|
132 | |||
133 | /** |
||
134 | * @param SetOperation|SetOperation[] $component the component to be built |
||
135 | * @param array $options parameters for building |
||
136 | * |
||
137 | * @return string |
||
138 | */ |
||
139 | 5 | public static function build($component, array $options = array()) |
|
147 | } |
||
148 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.