1 | <?php |
||
7 | class Response |
||
8 | { |
||
9 | private $chain; |
||
10 | |||
11 | /** |
||
12 | * Response constructor. |
||
13 | * |
||
14 | * @param $chain |
||
15 | */ |
||
16 | 5 | public function __construct(Chain $chain) |
|
20 | |||
21 | public function redirect($url, $status = null): self |
||
31 | |||
32 | 3 | public function statusCode($code): self |
|
38 | |||
39 | 2 | public function success() |
|
43 | |||
44 | public function withError($value): self |
||
50 | |||
51 | 1 | public function forbiddenStatus(): self |
|
55 | |||
56 | /** |
||
57 | * @param $value |
||
58 | * @param $type |
||
59 | */ |
||
60 | 5 | public function addAssertion($type, $value = null) |
|
64 | } |
||
65 |