%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/home/tjamichg/cursos.tjamich.gob.mx/main/inc/lib/hook/
Upload File :
Create Path :
Current File : //proc/self/root/home/tjamichg/cursos.tjamich.gob.mx/main/inc/lib/hook/HookDocumentAction.php

<?php

/* For licensing terms, see /license.txt */

/**
 * Class HookDocumentAction.
 */
class HookDocumentAction extends HookEvent implements HookDocumentActionEventInterface
{
    /**
     * HookDocumentAction constructor.
     *
     * @throws \Exception
     */
    protected function __construct()
    {
        parent::__construct('HookDocumentAction');
    }

    /**
     * Update all the observers.
     *
     * @param int $type
     *
     * @return array
     */
    public function notifyDocumentAction($type)
    {
        $this->eventData['type'] = $type;

        /** @var \HookDocumentActionObserverInterface $observer */
        foreach ($this->observers as $observer) {
            $data = $observer->notifyDocumentAction($this);
            $this->setEventData($data);
        }

        return $this->eventData;
    }
}

Zerion Mini Shell 1.0