src/Common/Address.php
public function setOffice($office)
    {
        if(!$office) {
            return $this;
        }
        if (!($office instanceof Office)) {
            $office = new Office($office);
        }
        if ($office->isEmpty()) {
            $this->invalidArguments('10007');
        }
        return $this->setParameter('office', $office);
    }
public function setOffice($office)
    {
        if(!$office) {
            return $this;
        }
        if (!($office instanceof Office)) {
            $office = new Office($office);
        }
        if ($office->isEmpty()) {
            $this->invalidArguments('10007');
        }
        return $this->setParameter('office', $office);
    }
public function setOffice ( $ office ) { if ( ! $ office ) { return $ this ; } if ( ! ( $ office instanceof Office ) ) { $ office = new Office ( $ office ) ; } if ( $ office -> isEmpty ( ) ) { $ this -> invalidArguments ( '10007' ) ; } return $ this -> setParameter ( 'office' , $ office ) ; }
Set the address street
@param Office|array $office
@return $this
@throws InvalidArgumentException
Set the address street