src/TempFile.php
public function accessPath(callable $callback) {

        $this->closeFileHandle();

        call_user_func($callback, $this->filePath);

        $this->openFileHandle('r+');

        return $this;
    }
public function accessPath(callable $callback) {

        $this->closeFileHandle();

        call_user_func($callback, $this->filePath);

        $this->openFileHandle('r+');

        return $this;
    }
public function accessPath ( callable $ callback ) { $ this -> closeFileHandle ( ) ; call_user_func ( $ callback , $ this -> filePath ) ; $ this -> openFileHandle ( 'r+' ) ; return $ this ; }
Executes a given callback function

@param callable $callback

@return $this
@throws TempFileException
Executes a given callback function