1 | <?php |
||
9 | class Get implements RequestInterface |
||
10 | { |
||
11 | const ENDPOINT = '/sobjects/%s/%s/'; |
||
12 | |||
13 | /** |
||
14 | * @var AbstractSObjectType |
||
15 | */ |
||
16 | protected $objectType; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $id; |
||
22 | |||
23 | /** |
||
24 | * @var array |
||
25 | */ |
||
26 | protected $params; |
||
27 | |||
28 | 3 | public function __construct(AbstractSObjectType $objectType, string $id, array $params = []) |
|
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | 2 | public function getEndpoint(): string |
|
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | 2 | public function getMethod(): RequestMethod |
|
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | 2 | public function getParams(): array |
|
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | 2 | public function getContentType(): ContentType |
|
70 | } |
||
71 |