OphCoTherapyapplication_Processor::__construct PHP 메소드

__construct() 공개 메소드

public __construct ( Event $event )
$event Event Must be an OphCoTherapyapplication event
    public function __construct(Event $event)
    {
        $event_type = $event->eventType->class_name;
        if ($event_type != 'OphCoTherapyapplication') {
            throw new Exception("Passed an event of type '{$event_type}'");
        }
        $this->event = $event;
    }