Example #1
0
 public function setAddress(Address $address)
 {
     if (!isset($address)) {
         trigger_error('The adress must have a value', E_USER_WARNING);
     } else {
         $this->_mainAdress = $address->getId();
     }
 }
Example #2
0
 /**
  * Set the address of the command
  * @param \App\Model\Address $adress
  */
 public function setAddress(Address $adress)
 {
     $this->_address = $adress->getId();
 }