| 1 | <?php |
||
| 5 | class Widgets extends CrudEndpoint |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @param string $itemId |
||
| 9 | * @param string|null $collectionId |
||
| 10 | * @return mixed |
||
| 11 | */ |
||
| 12 | public function delete($itemId, $collectionId = null) |
||
| 13 | { |
||
| 14 | $attributes = $collectionId ? ['collectionId' => $collectionId] : []; |
||
| 15 | |||
| 16 | return $this |
||
| 17 | ->http |
||
| 18 | ->delete( |
||
| 19 | $this->makeRequestUrl($itemId), |
||
| 20 | $attributes, |
||
| 21 | $this->headers() |
||
| 22 | ); |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | */ |
||
| 28 | public function endpoint() |
||
| 32 | } |
||
| 33 |