public function getSubMenu($id) { if (false === $this->isBuilt) { throw new RuntimeException(sprintf('Menu: "%s" cannot be retrieved until menu has been built', $id)); } return $this->subMenus[$id]; }