/**
* Get the contacts avatar and return the array of different formats.
*
* @return Media
*
* @VirtualProperty
* @SerializedName("avatar")
* @Groups({"fullContact","partialContact"})
*/
public function getAvatar()
{
if ($this->avatar) {
return ['id' => $this->avatar->getId(), 'url' => $this->avatar->getUrl(), 'thumbnails' => $this->avatar->getFormats()];
}
return;
}