| 1 | <?php |
||
| 19 | class ResponseContext implements ResponseContextInterface |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $intention; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var int |
||
| 28 | */ |
||
| 29 | protected $statusCode; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * ResponseContext constructor. |
||
| 33 | * |
||
| 34 | * @param string $intention |
||
| 35 | * @param int $statusCode |
||
| 36 | */ |
||
| 37 | 57 | public function __construct(int $statusCode = 200, string $intention = self::INTENTION_API) |
|
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritdoc} |
||
| 45 | */ |
||
| 46 | 49 | public function getIntention(): string |
|
| 50 | |||
| 51 | /** |
||
| 52 | * {@inheritdoc} |
||
| 53 | */ |
||
| 54 | 49 | public function getStatusCode(): int |
|
| 58 | } |
||
| 59 |