/**
  * Gets where condition of select, update or delete a parameter
  *
  * @param  ParameterInterface $parameter
  * @return array
  */
 protected function getWhereFromParameter(ParameterInterface $parameter)
 {
     if ($parameter instanceof IdAwareParameterInterface && $parameter->getId()) {
         return ['id' => $parameter->getId()];
     } else {
         return ['namespace' => $parameter->getNamespace(), 'name' => $parameter->getName()];
     }
 }
 /**
  * {@inheritDoc}
  */
 public function deleteParameter(ParameterInterface $parameter)
 {
     $data = $this->read($parameter->getNamespace());
     unset($data[$parameter->getName()]);
     $this->write($parameter->getNamespace(), $data);
 }