1 | <?php |
||
23 | class ProjectGetRequest extends AbstractApiRequest |
||
24 | { |
||
25 | protected $resultClass = '\Commercetools\Core\Model\Project\Project'; |
||
26 | |||
27 | 1 | public function __construct(Context $context = null) |
|
31 | /** |
||
32 | * @param ResponseInterface $response |
||
33 | * @return ResourceResponse |
||
34 | * @internal |
||
35 | */ |
||
36 | public function buildResponse(ResponseInterface $response) |
||
37 | { |
||
38 | return new ResourceResponse($response, $this, $this->getContext()); |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @return HttpRequest |
||
43 | * @internal |
||
44 | */ |
||
45 | public function httpRequest() |
||
46 | { |
||
47 | return new HttpRequest(HttpMethod::GET, $this->getPath()); |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * @param Context $context |
||
52 | * @return static |
||
53 | */ |
||
54 | 1 | public static function of(Context $context = null) |
|
58 | } |
||
59 |