public function open($file, $mode)
    {
        if (!empty(trim($file)) && !empty(trim($mode))) {
            $this->resource = fopen($file, $this->modes[$mode]);
            $this->file = $file;

            return $this;
        }

        return false;
    }
public function open($file, $mode)
    {
        if (!empty(trim($file)) && !empty(trim($mode))) {
            $this->resource = fopen($file, $this->modes[$mode]);
            $this->file = $file;

            return $this;
        }

        return false;
    }
public function open ( $ file , $ mode ) { if ( ! empty ( trim ( $ file ) ) && ! empty ( trim ( $ mode ) ) ) { $ this -> resource = fopen ( $ file , $ this -> modes [ $ mode ] ) ; $ this -> file = $ file ; return $ this ; } return false ; }
Open the file.

@param (string) $file Name of file with oath.
@param (string) $mode Mode of file.

@since 3.0.0

@return resource
Open the file .