| Total Complexity | 1 |
| Total Lines | 64 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | trait DbErrorSampleTrait |
||
| 23 | { |
||
| 24 | // Properties |
||
| 25 | // ========================================================================= |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var int |
||
| 29 | */ |
||
| 30 | public $requestId; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var int |
||
| 34 | */ |
||
| 35 | public $siteId; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @var string the title of the document (if any) |
||
| 39 | */ |
||
| 40 | public $title; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @var string u - the URL of the User Timing sample |
||
| 44 | */ |
||
| 45 | public $url; |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @var string the query string |
||
| 49 | */ |
||
| 50 | public $queryString; |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @var string the type of the errors (`javascript` or `craft`) |
||
| 54 | */ |
||
| 55 | public $type; |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @var array array of the errors |
||
| 59 | */ |
||
| 60 | public $pageErrors; |
||
| 61 | |||
| 62 | // Public Methods |
||
| 63 | // ========================================================================= |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @inheritdoc |
||
| 67 | */ |
||
| 68 | public function rules() |
||
| 90 |