Phalcon\Avatar\Gravatar::setSize PHP Метод

setSize() публичный Метод

By default, images from Gravatar.com will be returned as 80x80px
public setSize ( integer $size ) : Gravatar
$size integer The avatar size to use
Результат Gravatar
    public function setSize($size)
    {
        $options = ['options' => ['min_range' => static::MIN_AVATAR_SIZE, 'max_range' => static::MAX_AVATAR_SIZE]];
        if (false === filter_var($size, FILTER_VALIDATE_INT, $options)) {
            throw new InvalidArgumentException(sprintf("Can't set Gravatar size. Size must be an integer within %s and %s pixels", static::MIN_AVATAR_SIZE, static::MAX_AVATAR_SIZE));
        }
        $this->size = (int) $size;
        return $this;
    }