/** * @param mixed $entity * @return boolean */ public function isIdentified($entity) { return $this->storage->hasRecipeWithName($entity->getName()); }
/** * @param Name $name * @return boolean */ public function hasRecipeWithName(Name $name) { return $this->storage->hasRecipeWithName($name); }