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