/** */ function __construct($path = null) { $this->file = is_null($path) ? PM::getRollbackDir()->getFile('rollback.txt') : $path; if (!is_writable($this->file)) { throw new RollbackException('Rollback file (' . $this->file . ') not writable.'); } }