public function src($email, $size = 100, $rating = null)
    {
        $this->gravatar->setAvatarSize($size);

        if (! is_null($rating)) {
            $this->gravatar->setMaxRating($rating);
        }

        return htmlentities($this->gravatar->buildGravatarURL($email));
    }
public function src($email, $size = 100, $rating = null)
    {
        $this->gravatar->setAvatarSize($size);

        if (! is_null($rating)) {
            $this->gravatar->setMaxRating($rating);
        }

        return htmlentities($this->gravatar->buildGravatarURL($email));
    }
public function src ( $ email , $ size = 100 , $ rating = null ) { $ this -> gravatar -> setAvatarSize ( $ size ) ; if ( ! is_null ( $ rating ) ) { $ this -> gravatar -> setMaxRating ( $ rating ) ; } return htmlentities ( $ this -> gravatar -> buildGravatarURL ( $ email ) ) ; }
Construct the src for the image from the gravatar servers.

@param string $email
@param int $size
@param null|string $rating
@return string
Construct the src for the image from the gravatar servers .