public function getEpisodesAsOptions(array $episodes)
    {
        $options = [];

        foreach ($episodes as $id => $episode) {
            if ($episode instanceof EpisodeOfCare) {
                $options[$id] = $episode->getDisplayString();
            }
        }

        return $options;
    }
public function getEpisodesAsOptions(array $episodes)
    {
        $options = [];

        foreach ($episodes as $id => $episode) {
            if ($episode instanceof EpisodeOfCare) {
                $options[$id] = $episode->getDisplayString();
            }
        }

        return $options;
    }
public function getEpisodesAsOptions ( array $ episodes ) { $ options = [ ] ; foreach ( $ episodes as $ id => $ episode ) { if ( $ episode instanceof EpisodeOfCare ) { $ options [ $ id ] = $ episode -> getDisplayString ( ) ; } } return $ options ; }
Get the options list episodes for episodes

@param array $episodes
@return array of $episodeId => Description
Get the options list episodes for episodes