/** * @inheritdoc * * @param BaseReportInterface $entity * * @return $this * @throws \Assert\AssertionFailedException * @throws \Doctrine\ORM\ORMInvalidArgumentException * @throws \Doctrine\ORM\OptimisticLockException */ public function store(EntityInterface $entity) { Assertion::isInstanceOf($entity, BaseReportInterface::class); return parent::store($entity); }
/** * @inheritdoc * * @param GitLab\OAuth $entity * * @return $this * @throws \Assert\AssertionFailedException * @throws \Doctrine\ORM\ORMInvalidArgumentException * @throws \Doctrine\ORM\OptimisticLockException */ public function store(EntityInterface $entity) { Assertion::isInstanceOf($entity, GitLab\OAuth::class); return parent::store($entity); }