| 1 | <?php |
||
| 8 | class UrlInfo |
||
| 9 | { |
||
| 10 | protected $name; |
||
| 11 | protected $url; |
||
| 12 | protected $method; |
||
| 13 | protected $headers; |
||
| 14 | protected $timeout; |
||
| 15 | protected $expectedStatus; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Constructor. |
||
| 19 | * |
||
| 20 | * @param string $name |
||
| 21 | * @param string $url |
||
| 22 | * @param string $method |
||
| 23 | * @param array $headers |
||
| 24 | * @param int $timeout |
||
| 25 | * @param int $expectedStatus |
||
| 26 | */ |
||
| 27 | public function __construct( |
||
| 42 | |||
| 43 | /** |
||
| 44 | * getName. |
||
| 45 | * |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | public function getName() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * getUrl. |
||
| 55 | * |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | public function getUrl() |
||
| 62 | |||
| 63 | /** |
||
| 64 | * getMethod. |
||
| 65 | * |
||
| 66 | * @return string |
||
| 67 | */ |
||
| 68 | public function getMethod() |
||
| 72 | |||
| 73 | /** |
||
| 74 | * getHeaders. |
||
| 75 | * |
||
| 76 | * @return string |
||
| 77 | */ |
||
| 78 | public function getHeaders() |
||
| 82 | |||
| 83 | /** |
||
| 84 | * getTimeOut. |
||
| 85 | * |
||
| 86 | * @return int |
||
| 87 | */ |
||
| 88 | public function getTimeOut() |
||
| 92 | |||
| 93 | /** |
||
| 94 | * getTimeOut. |
||
| 95 | * |
||
| 96 | * @return int |
||
| 97 | */ |
||
| 98 | public function getExpectedStatus() |
||
| 102 | } |
||
| 103 |