| Total Complexity | 1 |
| Total Lines | 96 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | trait BoomerangDataSampleTrait |
||
| 19 | { |
||
| 20 | // Public Properties |
||
| 21 | // ========================================================================= |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var int (nt_dns_end - nt_dns_st) in ms |
||
| 25 | */ |
||
| 26 | public $dns; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var int (nt_con_end - nt_con_st) in ms |
||
| 30 | */ |
||
| 31 | public $connect; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var int t_resp in ms |
||
| 35 | */ |
||
| 36 | public $firstByte; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @var int pt_fp in ms |
||
| 40 | */ |
||
| 41 | public $firstPaint; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @var int pt_fcp in ms |
||
| 45 | */ |
||
| 46 | public $firstContentfulPaint; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @var int (nt_domint - nt_nav_st) in ms |
||
| 50 | */ |
||
| 51 | public $domInteractive; |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @var int (nt_domcomp - nt_nav_st) or t_done in ms |
||
| 55 | */ |
||
| 56 | public $pageLoad; |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @var string the country code from the IP address |
||
| 60 | */ |
||
| 61 | public $countryCode; |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @var string the device name |
||
| 65 | */ |
||
| 66 | public $device; |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @var string the browser name |
||
| 70 | */ |
||
| 71 | public $browser; |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @var string the operating system |
||
| 75 | */ |
||
| 76 | public $os; |
||
| 77 | |||
| 78 | /** |
||
| 79 | * @var bool mobile or non-mobile |
||
| 80 | */ |
||
| 81 | public $mobile; |
||
| 82 | |||
| 83 | // Public Methods |
||
| 84 | // ========================================================================= |
||
| 85 | |||
| 86 | /** |
||
| 87 | * @inheritdoc |
||
| 88 | */ |
||
| 89 | public function rules() |
||
| 117 |