public function getContents()
    {
        $this->valideAttach()->valideRead();
        if (($stream = stream_get_contents($this->stream)) === false) {
            throw new \RuntimeException('An error occurred while reading the stream.');
        }

        return $stream;
    }