parent
218dbd3c89
commit
688dd4f8db
@ -0,0 +1,29 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
|
||||
/** |
||||
* Class HookLearningPathEnd. |
||||
*/ |
||||
class HookLearningPathEnd extends HookEvent implements HookLearningPathEndEventInterface |
||||
{ |
||||
/** |
||||
* HookLearningPathEnd constructor. |
||||
* |
||||
* @throws \Exception |
||||
*/ |
||||
protected function __construct() |
||||
{ |
||||
parent::__construct('HookLearningPathEndEvent'); |
||||
} |
||||
|
||||
/** |
||||
* @inheritDoc |
||||
*/ |
||||
public function hookLearningPathEnd() |
||||
{ |
||||
/** @var \HookLearningPathEndObserverInterface $observer */ |
||||
foreach ($this->observers as $observer) { |
||||
$observer->notifyLearningPathEnd($this); |
||||
} |
||||
} |
||||
} |
||||
@ -0,0 +1,13 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
|
||||
/** |
||||
* Interface HookLearningPathEndEventInterface. |
||||
*/ |
||||
interface HookLearningPathEndEventInterface extends HookEventInterface |
||||
{ |
||||
/** |
||||
* @return mixed |
||||
*/ |
||||
public function hookLearningPathEnd(); |
||||
} |
||||
@ -0,0 +1,10 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
|
||||
/** |
||||
* Interface HookLearningPathEndObserverInterface. |
||||
*/ |
||||
interface HookLearningPathEndObserverInterface extends HookObserverInterface |
||||
{ |
||||
public function notifyLearningPathEnd(HookLearningPathEndEventInterface $event); |
||||
} |
||||
Loading…
Reference in new issue