private function setSize($size = null)
    {
        if ($size !== null) {
            $size = (int) $size;

            if ($size < 0) {
                throw new \RuntimeException('File size cannot be a negative value ! (size: ' . $size . ')');
            }
        }

        $this->size = $size;

        return $this;
    }
private function setSize($size = null)
    {
        if ($size !== null) {
            $size = (int) $size;

            if ($size < 0) {
                throw new \RuntimeException('File size cannot be a negative value ! (size: ' . $size . ')');
            }
        }

        $this->size = $size;

        return $this;
    }
private function setSize ( $ size = null ) { if ( $ size !== null ) { $ size = ( int ) $ size ; if ( $ size < 0 ) { throw new \ RuntimeException ( 'File size cannot be a negative value ! (size: ' . $ size . ')' ) ; } } $ this -> size = $ size ; return $ this ; }
Set file size

@param  int $size
@return self
Set file size