parent
39267e5716
commit
bb099be88f
@ -0,0 +1,29 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
|
||||
/** |
||||
* Class HookQuizEnd. |
||||
*/ |
||||
class HookQuizEnd extends HookEvent implements HookQuizEndEventInterface |
||||
{ |
||||
/** |
||||
* HookQuizEnd constructor. |
||||
* |
||||
* @throws Exception |
||||
*/ |
||||
protected function __construct() |
||||
{ |
||||
parent::__construct('HookQuizEnd'); |
||||
} |
||||
|
||||
/** |
||||
* @inheritDoc |
||||
*/ |
||||
public function notifyQuizEnd() |
||||
{ |
||||
/** @var HookQuizEndObserverInterface $observer */ |
||||
foreach ($this->observers as $observer) { |
||||
$observer->hookQuizEnd($this); |
||||
} |
||||
} |
||||
} |
||||
@ -0,0 +1,13 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
|
||||
/** |
||||
* Interface HookQuizEndEventInterface. |
||||
*/ |
||||
interface HookQuizEndEventInterface extends HookEventInterface |
||||
{ |
||||
/** |
||||
* @return void |
||||
*/ |
||||
public function notifyQuizEnd(); |
||||
} |
||||
@ -0,0 +1,15 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
|
||||
/** |
||||
* Interface HookQuizEndObserverInterface. |
||||
*/ |
||||
interface HookQuizEndObserverInterface |
||||
{ |
||||
/** |
||||
* @param HookQuizEndEventInterface $hookvent |
||||
* |
||||
* @return mixed |
||||
*/ |
||||
public function hookQuizEnd(HookQuizEndEventInterface $hookvent); |
||||
} |
||||
Loading…
Reference in new issue