KJ\Magento\Command\Order\Create\DummyCommand::getCustomerBillingAddress PHP Метод

getCustomerBillingAddress() защищенный Метод

    protected function getCustomerBillingAddress()
    {
        if ($this->getCustomer()->getDefaultBillingAddress()) {
            return $this->getCustomer()->getDefaultBillingAddress();
        } else {
            if ($this->getCustomer()->getDefaultShippingAddress()) {
                return $this->getCustomer()->getDefaultShippingAddress();
            } else {
                return $this->getDefaultAddress();
            }
        }
    }