/** * Get the parent ref entry * @return \mdref\Entry */ public function getParent() { if ("." !== ($dirn = dirname($this->name))) { return $this->repo->getEntry($dirn); } }
/** * Implements \Iterator * @return \mdref\Entry */ public function current() { return $this->repo->getEntry($this->repo->hasFile(current($this->iter))); }