public function setSize($size)
    {
        if (!empty($size)) {
            $this->size = $size;
            $this->pxRatio = round($size / 5);

            return $this;
        }
    }
public function setSize($size)
    {
        if (!empty($size)) {
            $this->size = $size;
            $this->pxRatio = round($size / 5);

            return $this;
        }
    }
public function setSize ( $ size ) { if ( ! empty ( $ size ) ) { $ this -> size = $ size ; $ this -> pxRatio = round ( $ size / 5 ) ; return $ this ; } }
Set size of image.

@param $size size of image.

@since 3.0.0

@return int
Set size of image .