/** * Clear structure related internal caches like trail and level status. * * @internal */ public function invalidateTrailStatusCache($deep = true) { $this->cachedTrailStatus = null; if ($deep && $this->children instanceof ItemCollection) { $this->children->invalidateTrailStatusCache(); } }
/** * {@inheritdoc} */ public function getLastChild() { return $this->children->last(); }