예제 #1
0
 public function createCity($nom, $reference, $postal)
 {
     $city = new City();
     $city->setNom($nom);
     $city->setDepartement($reference);
     $city->setPostal($postal);
     return $city;
 }
예제 #2
0
 public function createCity($nom, $reference, $postal)
 {
     $city = new City();
     $city->setNom($nom);
     $city->setDepartement($reference);
     $city->setPostal($postal);
     if ($nom == 'Rians') {
         $this->addReference('ville-rians', $city);
     }
     return $city;
 }