src/Sulu/Bundle/ContactBundle/Api/Account.php
public function getAddresses()
    {
        $accountAddresses = $this->entity->getAccountAddresses();
        $addresses = [];

        if (!is_null($accountAddresses)) {
            /** @var ContactAddress $accountAddress */
            foreach ($accountAddresses as $accountAddress) {
                $address = $accountAddress->getAddress();
                $address->setPrimaryAddress($accountAddress->getMain());
                $addresses[] = new Address($address, $this->locale);
            }
        }

        return $addresses;
    }
public function getAddresses()
    {
        $accountAddresses = $this->entity->getAccountAddresses();
        $addresses = [];

        if (!is_null($accountAddresses)) {
            /** @var ContactAddress $accountAddress */
            foreach ($accountAddresses as $accountAddress) {
                $address = $accountAddress->getAddress();
                $address->setPrimaryAddress($accountAddress->getMain());
                $addresses[] = new Address($address, $this->locale);
            }
        }

        return $addresses;
    }
public function getAddresses ( ) { $ accountAddresses = $ this -> entity -> getAccountAddresses ( ) ; $ addresses = [ ] ; if ( ! is_null ( $ accountAddresses ) ) { /** @var ContactAddress $accountAddress */ foreach ( $ accountAddresses as $ accountAddress ) { $ address = $ accountAddress -> getAddress ( ) ; $ address -> setPrimaryAddress ( $ accountAddress -> getMain ( ) ) ; $ addresses [ ] = new Address ( $ address , $ this -> locale ) ; } } return $ addresses ; }
returns addresses.

@VirtualProperty
@SerializedName("addresses")
@Groups({"fullAccount"})
returns addresses .