| Total Complexity | 5 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class Delete 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 | 2 | public function __construct(AbstractSObjectType $objectType, string $id) |
|
| 24 | { |
||
| 25 | 2 | $this->objectType = $objectType; |
|
| 26 | 2 | $this->id = $id; |
|
| 27 | 2 | } |
|
| 28 | |||
| 29 | /** |
||
| 30 | * {@inheritdoc} |
||
| 31 | */ |
||
| 32 | 1 | public function getMethod(): RequestMethod |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritdoc} |
||
| 39 | */ |
||
| 40 | 1 | public function getEndpoint(): string |
|
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * {@inheritdoc} |
||
| 47 | */ |
||
| 48 | 1 | public function getParams(): array |
|
| 51 | } |
||
| 52 | |||
| 53 | 1 | public function getContentType(): ContentType |
|
| 58 |