| @@ 43-54 (lines=12) @@ | ||
| 40 | * @param bool $everywhere |
|
| 41 | * @return mixed |
|
| 42 | */ |
|
| 43 | public function delete($itemId, $everywhere = false) |
|
| 44 | { |
|
| 45 | $params = $everywhere ? ['everywhere' => $everywhere] : []; |
|
| 46 | ||
| 47 | return $this |
|
| 48 | ->getHttp() |
|
| 49 | ->delete( |
|
| 50 | $this->makeRequestUrl($itemId), |
|
| 51 | $params, |
|
| 52 | $this->getHeaders() |
|
| 53 | ); |
|
| 54 | } |
|
| 55 | } |
|
| 56 | ||
| @@ 12-23 (lines=12) @@ | ||
| 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 | ->getHttp() |
|
| 18 | ->delete( |
|
| 19 | $this->makeRequestUrl($itemId), |
|
| 20 | $attributes, |
|
| 21 | $this->getHeaders() |
|
| 22 | ); |
|
| 23 | } |
|
| 24 | ||
| 25 | /** |
|
| 26 | * @return string |
|