コード例 #1
0
 /**
  * @param mixed $entity
  * @return boolean
  */
 public function isIdentified($entity)
 {
     return $this->storage->hasRecipeWithName($entity->getName());
 }
コード例 #2
0
ファイル: StorageRecipes.php プロジェクト: karion/mydrinks
 /**
  * @param Name $name
  * @return boolean
  */
 public function hasRecipeWithName(Name $name)
 {
     return $this->storage->hasRecipeWithName($name);
 }