public function getPackage() { if (!$this->package) { $this->load(); } return $this->package; }
public function process() { $pkgXml = new PackageXml($this->path); $package = $pkgXml->getPackage(); if ($this->cb) { $cb = $this->cb; $cb($package); } }