1 | <?php |
||
12 | class PulseColumnTagValue extends PulseColumnValue |
||
13 | { |
||
14 | /** |
||
15 | * Get the tags in this column. |
||
16 | * |
||
17 | * @return PulseTag[] |
||
18 | */ |
||
19 | 3 | public function getValue () |
|
23 | |||
24 | /** |
||
25 | * Override the existing tags in this column with the ones specified in this function call. |
||
26 | * |
||
27 | * If you'd like to remove just one tag or add a new one, you will have to do first call `getValue()` and manipulate |
||
28 | * the array yourself; this is purposely done to prevent an excess of API calls for each minor change. |
||
29 | * |
||
30 | * @param PulseTag[]|string[] $tags |
||
31 | * |
||
32 | * @throws \InvalidArgumentException |
||
33 | */ |
||
34 | 1 | public function updateValue (array $tags) |
|
63 | |||
64 | /** |
||
65 | * Cast and set the appropriate value for this column |
||
66 | * |
||
67 | * @param $response |
||
68 | */ |
||
69 | 3 | protected function setValue ($response) |
|
81 | } |
||
82 |