Exemplo n.º 1
0
 public function createCity($nom, $reference, $postal)
 {
     $city = new City();
     $city->setNom($nom);
     $city->setDepartement($reference);
     $city->setPostal($postal);
     return $city;
 }
Exemplo n.º 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;
 }