1 | <?php |
||
18 | class PulseColumnPersonValue extends PulseColumnValue |
||
19 | { |
||
20 | /** |
||
21 | * Get the person assigned listed in the person column |
||
22 | * |
||
23 | * @api |
||
24 | * |
||
25 | * @since 0.1.0 |
||
26 | * |
||
27 | * @return PulseUser|null Null is returned when no person is listed in this person column |
||
28 | */ |
||
29 | 4 | public function getValue () |
|
33 | |||
34 | /** |
||
35 | * Update the person in a person column |
||
36 | * |
||
37 | * @api |
||
38 | * |
||
39 | * @param int|PulseUser $user The new user that will be assigned to the person column |
||
40 | * |
||
41 | * @since 0.3.0 \InvalidArgumentException is now thrown |
||
42 | * @since 0.1.0 |
||
43 | * |
||
44 | * @throws \InvalidArgumentException if $user is not an integer, is not positive, or is not a PulseUser object |
||
45 | */ |
||
46 | 7 | public function updateValue ($user) |
|
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | 4 | protected function isNullValue () |
|
72 | |||
73 | 3 | protected function setValue ($response) |
|
77 | } |