public function setSize($size)
    {
        if (null === $size) {
            return $this;
        }

        $this->size = $size;
        $this->pixelRatio = (int) round($size / 5);

        return $this;
    }
public function setSize($size)
    {
        if (null === $size) {
            return $this;
        }

        $this->size = $size;
        $this->pixelRatio = (int) round($size / 5);

        return $this;
    }
public function setSize ( $ size ) { if ( null === $ size ) { return $ this ; } $ this -> size = $ size ; $ this -> pixelRatio = ( int ) round ( $ size / 5 ) ; return $ this ; }
Set the image size.

@param int $size

@return $this
Set the image size .