1 | <?php |
||
16 | class PulseColumnTimelineValue extends PulseColumnValue |
||
17 | { |
||
18 | /** |
||
19 | * Get a timeline column's content |
||
20 | * |
||
21 | * @api |
||
22 | * |
||
23 | * @since 0.2.1 |
||
24 | * |
||
25 | * @return \DateTime[]|null The timeline's begin and end dates |
||
26 | * |
||
27 | * array( |
||
28 | * 'from' => \DateTime |
||
29 | * 'to' => \DateTime |
||
30 | * ) |
||
31 | */ |
||
32 | 3 | public function getValue () |
|
33 | { |
||
34 | 3 | return parent::getValue(); |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * Update the values of a timeline column |
||
39 | * |
||
40 | * @api |
||
41 | * |
||
42 | * @param \DateTime $from |
||
43 | * @param \DateTime $to |
||
44 | * |
||
45 | * @since 0.3.0 \InvalidArgumentException is now thrown |
||
46 | * @since 0.2.1 |
||
47 | * |
||
48 | * @throws \InvalidArgumentException if $from or $to are not \DateTime instances |
||
49 | */ |
||
50 | 3 | public function updateValue ($from, $to) |
|
67 | |||
68 | 2 | protected function setValue ($response) |
|
75 | } |
Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.