Sulu\Bundle\ContactBundle\Contact\AbstractContactManager::getBillingAddress PHP Méthode

getBillingAddress() public méthode

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
Résultat mixed
    public function getBillingAddress($entity, $force = false)
    {
        /* @var Address $address */
        $conditionCallback = function ($address) {
            return $address->getBillingAddress();
        };
        return $this->getAddressByCondition($entity, $conditionCallback, $force);
    }