Total Complexity | 2 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | final class DeviceInfo implements \JsonSerializable |
||
10 | { |
||
11 | public const SOURCE_TYPE_WEB = 'WEB'; |
||
12 | public const APP_VERSION = '1.0.0'; |
||
13 | public const USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.192 Safari/537.36'; |
||
14 | |||
15 | private string $type; |
||
16 | private string $deviceId; |
||
17 | private string $appVersion; |
||
18 | private string $userAgent; |
||
19 | |||
20 | public function __construct( |
||
30 | } |
||
31 | |||
32 | public function jsonSerialize(): array |
||
42 |