| @@ 25-38 (lines=14) @@ | ||
| 22 | * |
|
| 23 | * @return \DateTime|null Null is returned when no date is listed in this date column |
|
| 24 | */ |
|
| 25 | public function getValue () |
|
| 26 | { |
|
| 27 | if ($this->isNullValue()) |
|
| 28 | { |
|
| 29 | return null; |
|
| 30 | } |
|
| 31 | ||
| 32 | if (!isset($this->column_value)) |
|
| 33 | { |
|
| 34 | $this->column_value = new \DateTime($this->jsonResponse["value"]); |
|
| 35 | } |
|
| 36 | ||
| 37 | return $this->column_value; |
|
| 38 | } |
|
| 39 | ||
| 40 | /** |
|
| 41 | * Update the date of the date column. The specific time of the DateTime object will be ignored. |
|
| @@ 27-40 (lines=14) @@ | ||
| 24 | * |
|
| 25 | * @return PulseUser|null Null is returned when no person is listed in this person column |
|
| 26 | */ |
|
| 27 | public function getValue () |
|
| 28 | { |
|
| 29 | if ($this->isNullValue()) |
|
| 30 | { |
|
| 31 | return null; |
|
| 32 | } |
|
| 33 | ||
| 34 | if (!isset($this->column_value)) |
|
| 35 | { |
|
| 36 | $this->column_value = new PulseUser($this->jsonResponse["value"]["id"]); |
|
| 37 | } |
|
| 38 | ||
| 39 | return $this->column_value; |
|
| 40 | } |
|
| 41 | ||
| 42 | /** |
|
| 43 | * Update the person in a person column |
|