| 1 | <?php  | 
            ||
| 11 | class Request  | 
            ||
| 12 | { | 
            ||
| 13 | |||
| 14 | /**  | 
            ||
| 15 | * @var string Full URL  | 
            ||
| 16 | */  | 
            ||
| 17 | protected $url;  | 
            ||
| 18 | |||
| 19 | /**  | 
            ||
| 20 | * @var array POST data  | 
            ||
| 21 | */  | 
            ||
| 22 | protected $post;  | 
            ||
| 23 | |||
| 24 | /**  | 
            ||
| 25 | * @param string $url URL of the request, trailing slash are removed automatically  | 
            ||
| 26 | * @param array $post URL post fields  | 
            ||
| 27 | */  | 
            ||
| 28 | 1 | public function __construct(string $url, array $post)  | 
            |
| 33 | |||
| 34 | /**  | 
            ||
| 35 | * Get request URL path  | 
            ||
| 36 | *  | 
            ||
| 37 | * @return string URL path  | 
            ||
| 38 | */  | 
            ||
| 39 | 2 | public function getPath(): string  | 
            |
| 49 | |||
| 50 | /**  | 
            ||
| 51 | * Get request POST data  | 
            ||
| 52 | *  | 
            ||
| 53 | * @return array POST data  | 
            ||
| 54 | */  | 
            ||
| 55 | public function getPost(): array  | 
            ||
| 59 | }  | 
            ||
| 60 |