OphCoTherapyapplication_Processor::getElement PHP Method

getElement() protected method

We could potentially add a caching layer here if performance becomes a problem, but would have to watch out for stale data
protected getElement ( string $class_name ) : BaseEventTypeElement | null
$class_name string
return BaseEventTypeElement | null
    protected function getElement($class_name)
    {
        return $class_name::model()->findByAttributes(array('event_id' => $this->event->id));
    }