Total Complexity | 3 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
5 | trait UserAgentTrait |
||
6 | { |
||
7 | /** |
||
8 | * An self::setUserAgent()'s alias to add an user-agent wich correspond to a Destkop PC. |
||
9 | * |
||
10 | * @return self |
||
11 | */ |
||
12 | 15 | public function setDestkopUserAgent() |
|
17 | } |
||
18 | |||
19 | /** |
||
20 | * An self::setUserAgent()'s alias to add an user-agent wich correspond to a mobile. |
||
21 | * |
||
22 | * @return self |
||
23 | */ |
||
24 | 3 | public function setMobileUserAgent() |
|
30 | } |
||
31 | |||
32 | /** |
||
33 | * An self::setUserAgent()'s alias to add an user-agent wich correspond to a webrowser without javascript. |
||
34 | * |
||
35 | * @return self |
||
36 | */ |
||
37 | 3 | public function setLessJsUserAgent() |
|
45 |