public function toString()
    {
        $this->failOnWriteOnly();

        if ($this->shouldLock === false) {
            return $this->readAll();

        }

        $path = (string)$this->url();

        // If the file was not locked by me (but someone else)
        if (!$this->lockApplied && $this->pathIsLocked($path)) {
            throw new ResourceLockedException("$path is locked");
        }

        return $this->readAll();

    }
public function toString()
    {
        $this->failOnWriteOnly();

        if ($this->shouldLock === false) {
            return $this->readAll();

        }

        $path = (string)$this->url();

        // If the file was not locked by me (but someone else)
        if (!$this->lockApplied && $this->pathIsLocked($path)) {
            throw new ResourceLockedException("$path is locked");
        }

        return $this->readAll();

    }
public function toString ( ) { $ this -> failOnWriteOnly ( ) ; if ( $ this -> shouldLock === false ) { return $ this -> readAll ( ) ; } $ path = ( string ) $ this -> url ( ) ; // If the file was not locked by me (but someone else) if ( ! $ this -> lockApplied && $ this -> pathIsLocked ( $ path ) ) { throw new ResourceLockedException ( "$path is locked" ) ; } return $ this -> readAll ( ) ; }
Renders this object. Without any exception problems you can render
the content here.

@return string
Renders this object . Without any exception problems you can render the content here .