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