Sulu\Bundle\ContactBundle\Contact\AbstractContactManager::getAddresses PHP 메소드

getAddresses() 개인적인 메소드

returns addresses from account or contact.
private getAddresses ( Sulu\Bundle\ContactBundle\Entity\AccountInterface | Contact $entity ) : Doctrine\Common\Collections\Collection | null
$entity Sulu\Bundle\ContactBundle\Entity\AccountInterface | Sulu\Bundle\ContactBundle\Entity\Contact
리턴 Doctrine\Common\Collections\Collection | null
    private function getAddresses($entity)
    {
        if ($entity instanceof AccountInterface) {
            return $entity->getAccountAddresses();
        } elseif ($entity instanceof Contact) {
            return $entity->getContactAddresses();
        }
        return;
    }