| 1 | <?php |
||
| 11 | class PulseColumnTimelineValue extends PulseColumnValue |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Get a timeline column's content |
||
| 15 | * |
||
| 16 | * @api |
||
| 17 | * |
||
| 18 | * @since 0.2.1 |
||
| 19 | * |
||
| 20 | * @return \DateTime[]|null The timeline's begin and end dates |
||
| 21 | * |
||
| 22 | * array( |
||
| 23 | * 'from' => \DateTime |
||
| 24 | * 'to' => \DateTime |
||
| 25 | * ) |
||
| 26 | */ |
||
| 27 | 3 | public function getValue () |
|
| 31 | |||
| 32 | /** |
||
| 33 | * Update the values of a timeline column |
||
| 34 | * |
||
| 35 | * @api |
||
| 36 | * |
||
| 37 | * @param \DateTime $from |
||
| 38 | * @param \DateTime $to |
||
| 39 | * |
||
| 40 | * @since 0.3.0 \InvalidArgumentException is now thrown |
||
| 41 | * @since 0.2.1 |
||
| 42 | * |
||
| 43 | * @throws \InvalidArgumentException if $from or $to are not \DateTime instances |
||
| 44 | */ |
||
| 45 | 1 | public function updateValue ($from, $to) |
|
| 62 | |||
| 63 | 2 | protected function setValue ($response) |
|
| 70 | } |
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.