| Total Complexity | 6 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Coverage | 20% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class Agent extends BaseAgent implements ArrayAccess, Arrayable, Jsonable, JsonSerializable |
||
| 13 | { |
||
| 14 | use Concerns\HasAttributes; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * {@inheritdoc} |
||
| 18 | */ |
||
| 19 | 4 | public function __construct(array $headers = null, $userAgent = null) |
|
| 20 | { |
||
| 21 | 4 | parent::__construct($headers, $userAgent); |
|
| 22 | 4 | } |
|
| 23 | |||
| 24 | /** |
||
| 25 | * Get the accept language. |
||
| 26 | * |
||
| 27 | * @param string|null $preferLanguage |
||
| 28 | * @return string|bool |
||
| 29 | */ |
||
| 30 | public function language($preferLanguage = null) |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Get the operating system (platform) name. |
||
| 51 | * |
||
| 52 | * @param string $userAgent |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | public function os($userAgent = null) |
||
| 58 | } |
||
| 59 | } |
||
| 60 |