1 | <?php |
||
14 | abstract class VersionableRequestMaker |
||
15 | { |
||
16 | /** |
||
17 | * The HTTP call request. |
||
18 | * |
||
19 | * @var Cerbero\FluentApi\Requests\Request |
||
20 | */ |
||
21 | protected $request; |
||
22 | |||
23 | /** |
||
24 | * The version number of the API. |
||
25 | * |
||
26 | * @author Andrea Marco Sartori |
||
27 | * @var string|null |
||
28 | */ |
||
29 | protected $version; |
||
30 | |||
31 | /** |
||
32 | * Retrieve the request to pass through resources. |
||
33 | * |
||
34 | * @return Cerbero\FluentApi\Requests\Request |
||
35 | */ |
||
36 | abstract public function getRequest(); |
||
37 | |||
38 | /** |
||
39 | * Set the version number. |
||
40 | * |
||
41 | * @author Andrea Marco Sartori |
||
42 | * @param string|null $version |
||
43 | * @return $this |
||
44 | */ |
||
45 | public function setVersion($version) |
||
51 | |||
52 | /** |
||
53 | * Retrieve the version number. |
||
54 | * |
||
55 | * @author Andrea Marco Sartori |
||
56 | * @return string |
||
57 | */ |
||
58 | public function getVersion() |
||
62 | } |
||
63 |