public function getPhoto() {
		if(is_null($photo = $this->tag->getChild('PHOTO'))) {
			return NULL;
		} else {
			try {
				return new Avatar($photo);
			} catch(Exception $e) {
				return NULL;
			}
		}
	}
public function getPhoto() {
		if(is_null($photo = $this->tag->getChild('PHOTO'))) {
			return NULL;
		} else {
			try {
				return new Avatar($photo);
			} catch(Exception $e) {
				return NULL;
			}
		}
	}
public function getPhoto ( ) { if ( is_null ( $ photo = $ this -> tag -> getChild ( 'PHOTO' ) ) ) { return NULL ; } else { try { return new Avatar ( $ photo ) ; } catch ( Exception $ e ) { return NULL ; } } }
Get the avatar from the vCard.
Avatar is represented by an instance of BSMAvatar class.
@return BSMAvatar the avatar contained in the vCard or NULL if the avatar is absent
Get the avatar from the vCard . Avatar is represented by an instance of BSMAvatar class .