public function dump() { return ['title' => $this->getTitle(), 'type' => get_class($this), 'name' => $this->getName(), 'uri' => $this->getUri(), 'url' => $this->getUrl(), 'path' => $this->path]; }
public function dump() { $dump = parent::dump(); $dump['index'] = $this->getIndexPage() ? $this->getIndexPage()->getUrl() : ''; $dump['first'] = $this->getFirstPage() ? $this->getFirstPage()->getUrl() : ''; foreach ($this->getEntries() as $entry) { $dump['children'][] = $entry->dump(); } return $dump; }