OEModule\OphCiExamination\models\Element_OphCiExamination_LaserManagement::getLetterStringForSide PHP Метод

getLetterStringForSide() защищенный Метод

gets a string of the information contained in this element for the given side.
protected getLetterStringForSide ( $side ) : string
$side
Результат string
    protected function getLetterStringForSide($side)
    {
        $res = ucfirst($side) . " Eye:\n";
        $status = $this->{$side . '_laser_status'};
        $res .= $status->name;
        if ($status->deferred) {
            $res .= ' due to ' . $this->getLaserDeferralReasonForSide($side);
        }
        if ($status->book || $status->event) {
            $res .= "\n" . $this->getAttributeLabel($side . '_lasertype_id') . ': ' . $this->getLaserTypeStringForSide($side);
        }
        if ($comments = $this->{$side . '_comments'}) {
            $res .= "\n" . $this->getAttributeLabel($side . '_comments') . ': ' . $comments;
        }
        return $res;
    }