| @@ 92-105 (lines=14) @@ | ||
| 89 | * |
|
| 90 | * @return int |
|
| 91 | */ |
|
| 92 | public function getVersion() |
|
| 93 | { |
|
| 94 | if ($this->version === null) { |
|
| 95 | $success = true; |
|
| 96 | ||
| 97 | $version = $this->getItem('browscap.version', false, $success); |
|
| 98 | ||
| 99 | if ($version !== null && $success) { |
|
| 100 | $this->version = (int) $version; |
|
| 101 | } |
|
| 102 | } |
|
| 103 | ||
| 104 | return $this->version; |
|
| 105 | } |
|
| 106 | ||
| 107 | /** |
|
| 108 | * Gets the release date of the Browscap data |
|
| @@ 132-145 (lines=14) @@ | ||
| 129 | * |
|
| 130 | * @return string |
|
| 131 | */ |
|
| 132 | public function getType() |
|
| 133 | { |
|
| 134 | if ($this->type === null) { |
|
| 135 | $success = true; |
|
| 136 | ||
| 137 | $type = $this->getItem('browscap.type', false, $success); |
|
| 138 | ||
| 139 | if ($type !== null && $success) { |
|
| 140 | $this->type = $type; |
|
| 141 | } |
|
| 142 | } |
|
| 143 | ||
| 144 | return $this->type; |
|
| 145 | } |
|
| 146 | ||
| 147 | /** |
|
| 148 | * Get an item. |
|