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