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