Element_OphCoTherapyapplication_PatientSuitability::contraindicationsRequired PHP Method

contraindicationsRequired() public method

if either the left or right treatment requires the contraindications to be provided, returns true. otherwise returns false.
public contraindicationsRequired ( ) : boolean
return boolean $required
    public function contraindicationsRequired()
    {
        return $this->left_treatment && $this->left_treatment->contraindications_required || $this->right_treatment && $this->right_treatment->contraindications_required;
    }