public function getLetterIOPReadingPrincipal($patient) { if ($episode = $patient->getEpisodeForCurrentSubspecialty()) { if ($episode->eye) { $method = 'getLetterIOPReading' . $episode->eye->name; return $this->{$method}($patient); } } }