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) |
|
62 | |||
63 | 4 | protected function isNullValue () |
|
73 | |||
74 | 3 | protected function setValue ($response) |
|
78 | } |