| @@ 109-116 (lines=8) @@ | ||
| 106 | return $this->_comments; |
|
| 107 | } |
|
| 108 | ||
| 109 | public function setDate($value) |
|
| 110 | { |
|
| 111 | $timestamp = strtotime($value); |
|
| 112 | if ($timestamp !== false) { |
|
| 113 | $this->_date = $timestamp; |
|
| 114 | } |
|
| 115 | ||
| 116 | return $this; |
|
| 117 | } |
|
| 118 | ||
| 119 | public function getDate() |
|
| @@ 100-108 (lines=9) @@ | ||
| 97 | * @param mixed $value date |
|
| 98 | * @return Tag this |
|
| 99 | */ |
|
| 100 | public function setDate($value) |
|
| 101 | { |
|
| 102 | $timestamp = strtotime($value); |
|
| 103 | if ($timestamp !== false && $timestamp > $this->_date) { |
|
| 104 | $this->_date = $timestamp; |
|
| 105 | } |
|
| 106 | ||
| 107 | return $this; |
|
| 108 | } |
|
| 109 | ||
| 110 | /** |
|
| 111 | * Unsets date. |
|