private function setStream(): InputFile
    {
        if (is_readable($this->path)) {
            $this->stream = fopen($this->path, 'rb');
        } else {
            throw new FileNotReadable(sprintf('Can not read local file "%s", please check', $this->path));
        }

        return $this;
    }
private function setStream(): InputFile
    {
        if (is_readable($this->path)) {
            $this->stream = fopen($this->path, 'rb');
        } else {
            throw new FileNotReadable(sprintf('Can not read local file "%s", please check', $this->path));
        }

        return $this;
    }
private function setStream ( ) : InputFile { if ( is_readable ( $ this -> path ) ) { $ this -> stream = fopen ( $ this -> path , 'rb' ) ; } else { throw new FileNotReadable ( sprintf ( 'Can not read local file "%s", please check' , $ this -> path ) ) ; } return $ this ; }
Will setup the stream

@return InputFile
@throws FileNotReadable
Will setup the stream