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;
}