private function open()
    {
        $this->fileHandle = fopen($this->path, "c+");
        if (!is_resource($this->fileHandle)) {
            throw new StorageException("Could not open '$this->path'.");
        }
        $this->mutex = new FlockMutex($this->fileHandle);
    }
private function open()
    {
        $this->fileHandle = fopen($this->path, "c+");
        if (!is_resource($this->fileHandle)) {
            throw new StorageException("Could not open '$this->path'.");
        }
        $this->mutex = new FlockMutex($this->fileHandle);
    }
private function open ( ) { $ this -> fileHandle = fopen ( $ this -> path , "c+" ) ; if ( ! is_resource ( $ this -> fileHandle ) ) { throw new StorageException ( "Could not open '$this->path'." ) ; } $ this -> mutex = new FlockMutex ( $ this -> fileHandle ) ; }
Opens the file and initializes the mutex.

@throws StorageException Failed to open the file.
Opens the file and initializes the mutex .