src/Sulu/Bundle/ContactBundle/Api/Contact.php
public function getAvatar()
    {
        if ($this->avatar) {
            return [
                'id' => $this->avatar->getId(),
                'url' => $this->avatar->getUrl(),
                'thumbnails' => $this->avatar->getFormats(),
            ];
        }

        return;
    }
public function getAvatar()
    {
        if ($this->avatar) {
            return [
                'id' => $this->avatar->getId(),
                'url' => $this->avatar->getUrl(),
                'thumbnails' => $this->avatar->getFormats(),
            ];
        }

        return;
    }
public function getAvatar ( ) { if ( $ this -> avatar ) { return [ 'id' => $ this -> avatar -> getId ( ) , 'url' => $ this -> avatar -> getUrl ( ) , 'thumbnails' => $ this -> avatar -> getFormats ( ) , ] ; } return ; }
Get the contacts avatar and return the array of different formats.

@return Media

@VirtualProperty
@SerializedName("avatar")
@Groups({"fullContact","partialContact"})
Get the contacts avatar and return the array of different formats .