Optimized CrudAttribut logic

This commit is contained in:
Kevin Frantz
2019-01-16 21:36:05 +01:00
parent 93bf246915
commit 6897b44aec
4 changed files with 22 additions and 22 deletions

View File

@@ -99,19 +99,6 @@ class Right extends AbstractMeta implements RightInterface
$this->priority = 0;
}
/**
* {@inheritdoc}
*
* @see \App\Entity\Attribut\CrudAttributInterface::setCrud()
*/
public function setCrud(string $crud): void
{
if (!array_key_exists($crud, CRUDType::getChoices())) {
throw new NoValidChoiceException();
}
$this->crud = $crud;
}
/**
* {@inheritdoc}
*