Example #1
0
 /**
  * Translates the "delete" call to DataStore
  *
  * @see \zaboy\scheduler\Callback\Factory\DataStoreAbstractFactory
  * @see \zaboy\rest\DataStore\Interfaces\DataStoresInterface
  * @param array $options
  * @return array
  * @throws CallbackException
  */
 private function delete(array $options = [])
 {
     if (!isset($options['item_data']['id'])) {
         throw new CallbackException("Expected necessary parameter \"id\" in the options array");
     }
     return $this->dataStore->delete($options['item_data']['id']);
 }