| Total Complexity | 7 |
| Total Lines | 77 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php // Copyright ⓒ 2018 Magneds IP B.V. - All Rights Reserved |
||
| 9 | class SnapshotRequest implements RequestInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var ProjectID |
||
| 13 | */ |
||
| 14 | protected $projectID; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string|null |
||
| 18 | */ |
||
| 19 | protected $title; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * SnapshotRequest constructor. |
||
| 23 | * @param ProjectID $projectID |
||
| 24 | * @param null|string $title |
||
| 25 | */ |
||
| 26 | public function __construct(ProjectID $projectID, $title = null) |
||
| 27 | { |
||
| 28 | $this->projectID = $projectID; |
||
| 29 | $this->title = $title; |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Return the method to make this request in. |
||
| 34 | * |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | public function getMethod() |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * This URI is appended to the route URL given to the Client object. |
||
| 44 | * |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | public function getURI() |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return array |
||
| 54 | */ |
||
| 55 | public function getQueryArguments() |
||
| 56 | { |
||
| 57 | return []; |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return array |
||
| 62 | */ |
||
| 63 | public function getBody() |
||
| 74 | } |
||
| 75 | |||
| 76 | /** |
||
| 77 | * @param ResponseInterface $response |
||
| 78 | * @return mixed |
||
| 79 | */ |
||
| 80 | public function handleResponse(ResponseInterface $response): ResponseInfo |
||
| 86 | } |
||
| 87 | } |
||
| 88 |