private function getMethodsIndexedByName() { if (!isset($this->cachedMethods)) { $this->cachedMethods = $this->scanMethods(); } return $this->cachedMethods; }