Element_OphDrPrescription_Details::getLetterText PHP Méthode

getLetterText() public méthode

Generates string for inclusion in letters that describes the prescription.
public getLetterText ( ) : string
Résultat string
    public function getLetterText()
    {
        $return = '';
        foreach ($this->items as $item) {
            if ($return) {
                $return .= "\n";
            }
            $return .= $item->getDescription();
            if ($item->tapers) {
                foreach ($item->tapers as $taper) {
                    $return .= "\n   " . $taper->getDescription();
                }
            }
        }
        return $return;
    }