public function getActiveAddress()
    {
        if (null === $this->getAddresses()) {
            return null;
        }

        if (1 === count($this->getAddresses())) {
            foreach ($this->getAddresses() as $address) {
                return $address;
            }
        }

        if (null === $this->response['active_address']) {
            return null;
        }

        return $this->getAddresses()[$this->response['active_address']];
    }
public function getActiveAddress()
    {
        if (null === $this->getAddresses()) {
            return null;
        }

        if (1 === count($this->getAddresses())) {
            foreach ($this->getAddresses() as $address) {
                return $address;
            }
        }

        if (null === $this->response['active_address']) {
            return null;
        }

        return $this->getAddresses()[$this->response['active_address']];
    }
public function getActiveAddress ( ) { if ( null === $ this -> getAddresses ( ) ) { return null ; } if ( 1 === count ( $ this -> getAddresses ( ) ) ) { foreach ( $ this -> getAddresses ( ) as $ address ) { return $ address ; } } if ( null === $ this -> response [ 'active_address' ] ) { return null ; } return $ this -> getAddresses ( ) [ $ this -> response [ 'active_address' ] ] ; }
Return the surname.

@return array|null
Return the surname .