1 | <?php |
||
21 | class Result |
||
22 | { |
||
23 | protected $urlInfo; |
||
24 | protected $statusCode; |
||
25 | protected $responseTime; |
||
26 | protected $handlerError; |
||
27 | protected $validatorResult; |
||
28 | protected $validatorError; |
||
29 | |||
30 | /** |
||
31 | * Constructor. |
||
32 | * |
||
33 | * @param UrlInfo $urlInfo |
||
34 | * @param string $statusCode |
||
35 | * @param float $responseTime |
||
36 | * @param string $handlerError Get a string error from the handler |
||
37 | * @param bool|null $validatorResult Get the validator result |
||
38 | * @param string $validatorError Get the validator error |
||
39 | */ |
||
40 | public function __construct( |
||
55 | |||
56 | /** |
||
57 | * getUrl. |
||
58 | * |
||
59 | * @return UrlInfo |
||
60 | */ |
||
61 | public function getUrl() |
||
65 | |||
66 | /** |
||
67 | * getStatusCode. |
||
68 | * |
||
69 | * @return int |
||
70 | */ |
||
71 | public function getStatusCode() |
||
75 | |||
76 | /** |
||
77 | * getReponseTime. |
||
78 | * |
||
79 | * @return float |
||
80 | */ |
||
81 | public function getReponseTime() |
||
85 | |||
86 | /** |
||
87 | * getHandlerError. |
||
88 | * |
||
89 | * @return string|null |
||
90 | */ |
||
91 | public function getHandlerError() |
||
95 | |||
96 | /** |
||
97 | * getValidatorResult. |
||
98 | * |
||
99 | * @return bool |
||
100 | */ |
||
101 | public function getValidatorResult() |
||
105 | |||
106 | /** |
||
107 | * getValidatorError. |
||
108 | * |
||
109 | * @return string|null |
||
110 | */ |
||
111 | public function getValidatorError() |
||
115 | } |
||
116 |