| 1 | <?php |
||
| 24 | class REQUEST extends AbstractAnnotation implements HttpRequest |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * The request method |
||
| 28 | * |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | private $type; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * If the request contains a body |
||
| 35 | * |
||
| 36 | * @var bool |
||
| 37 | */ |
||
| 38 | private $body; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Initialize annotation data |
||
| 42 | */ |
||
| 43 | 1 | protected function init(): void |
|
| 50 | |||
| 51 | |||
| 52 | /** |
||
| 53 | * Returns the type of the annotation (get, post, put, etc) |
||
| 54 | * |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | 1 | public function getType(): string |
|
| 61 | |||
| 62 | /** |
||
| 63 | * Returns true if the request type contains a body |
||
| 64 | * |
||
| 65 | * @return bool |
||
| 66 | */ |
||
| 67 | 1 | public function hasBody(): bool |
|
| 71 | } |
||
| 72 |