public function setFileSize($size)
    {
        if ($size === null) {
            $this->fileSize = null;

            return $this;
        }

        if (!is_numeric($size)) {
            throw new InvalidArgumentException('File size must be an integer or a float.');
        }

        $this->fileSize = $size;

        return $this;
    }
public function setFileSize($size)
    {
        if ($size === null) {
            $this->fileSize = null;

            return $this;
        }

        if (!is_numeric($size)) {
            throw new InvalidArgumentException('File size must be an integer or a float.');
        }

        $this->fileSize = $size;

        return $this;
    }
public function setFileSize ( $ size ) { if ( $ size === null ) { $ this -> fileSize = null ; return $ this ; } if ( ! is_numeric ( $ size ) ) { throw new InvalidArgumentException ( 'File size must be an integer or a float.' ) ; } $ this -> fileSize = $ size ; return $ this ; }
Set the size of the attached file.

@param  integer|float $size A file size in bytes; the one of the attached.
@throws InvalidArgumentException If provided argument is not of type 'integer' or 'float'.
@return self
Set the size of the attached file .