You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
728 B
36 lines
728 B
<?php
|
|
/* For licensing terms, see /license.txt */
|
|
|
|
/**
|
|
* Class HookResubscribe.
|
|
*
|
|
* @var \SplObjectStorage
|
|
*/
|
|
class HookResubscribe extends HookEvent implements HookResubscribeEventInterface
|
|
{
|
|
/**
|
|
* Constructor.
|
|
*/
|
|
protected function __construct()
|
|
{
|
|
parent::__construct('HookResubscribe');
|
|
}
|
|
|
|
/**
|
|
* Update all the observers.
|
|
*
|
|
* @param int $type
|
|
*
|
|
* @return int
|
|
*/
|
|
public function notifyResubscribe($type)
|
|
{
|
|
/** @var \HookResubscribeObserverInterface $observer */
|
|
$this->eventData['type'] = $type;
|
|
foreach ($this->observers as $observer) {
|
|
$observer->hookResubscribe($this);
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
|