| @@ 88-95 (lines=8) @@ | ||
| 85 | ]); |
|
| 86 | } |
|
| 87 | ||
| 88 | public function isTemporal() { |
|
| 89 | return in_array($this->type, [ |
|
| 90 | Type::DATETIME, |
|
| 91 | Type::DATE, |
|
| 92 | Type::TIME, |
|
| 93 | Type::YEAR, |
|
| 94 | ]); |
|
| 95 | } |
|
| 96 | ||
| 97 | public function isText() { |
|
| 98 | return in_array($this->type, [ |
|
| @@ 97-104 (lines=8) @@ | ||
| 94 | ]); |
|
| 95 | } |
|
| 96 | ||
| 97 | public function isText() { |
|
| 98 | return in_array($this->type, [ |
|
| 99 | Type::TEXT, |
|
| 100 | Type::IP, |
|
| 101 | Type::EMAIL, |
|
| 102 | Type::URL, |
|
| 103 | ]); |
|
| 104 | } |
|
| 105 | ||
| 106 | public function isJSON() { |
|
| 107 | return $this->type == Type::JSON; |
|