1 | <?php |
||
19 | class PulseColumnPersonValue extends PulseColumnValue |
||
20 | { |
||
21 | /** |
||
22 | * Get the person assigned listed in the person column |
||
23 | * |
||
24 | * @api |
||
25 | * |
||
26 | * @since 0.4.0 ColumnNotFoundException is now thrown |
||
27 | * @since 0.1.0 |
||
28 | * |
||
29 | * @throws ColumnNotFoundException The specified column ID does not exist for the parent Pulse |
||
30 | * |
||
31 | * @return PulseUser|null Null is returned when no person is listed in this person column |
||
32 | */ |
||
33 | 4 | public function getValue () |
|
37 | |||
38 | /** |
||
39 | * Update the person in a person column |
||
40 | * |
||
41 | * @api |
||
42 | * |
||
43 | * @param int|PulseUser $user The new user that will be assigned to the person column |
||
44 | * |
||
45 | * @since 0.3.0 \InvalidArgumentException is now thrown |
||
46 | * @since 0.1.0 |
||
47 | * |
||
48 | * @throws \InvalidArgumentException if $user is not an integer, is not positive, or is not a PulseUser object |
||
49 | */ |
||
50 | 7 | public function updateValue ($user) |
|
63 | |||
64 | 4 | protected function isNullValue () |
|
74 | |||
75 | 3 | protected function setValue ($response) |
|
85 | } |
||
86 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..