Sulu\Bundle\ContactBundle\Contact\AbstractContactManager::getBillingAddress PHP Метод

getBillingAddress() публичный Метод

Returns the billing address of an account/contact.
public getBillingAddress ( Sulu\Bundle\ContactBundle\Entity\AccountInterface | Contact $entity, boolean $force = false ) : mixed
$entity Sulu\Bundle\ContactBundle\Entity\AccountInterface | Sulu\Bundle\ContactBundle\Entity\Contact
$force boolean Forces function to return an address if any address is defined if no delivery address is defined it will first return the main address then any
Результат mixed
    public function getBillingAddress($entity, $force = false)
    {
        /* @var Address $address */
        $conditionCallback = function ($address) {
            return $address->getBillingAddress();
        };
        return $this->getAddressByCondition($entity, $conditionCallback, $force);
    }