chamilo/chamilo-lms

View on GitHub
src/CoreBundle/Hook/Interfaces/HookMyStudentsQuizTrackingObserverInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

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

namespace Chamilo\CoreBundle\Hook\Interfaces;

/**
 * Interface HookMyStudentsQuizTrackingObserverInterface.
 */
interface HookMyStudentsQuizTrackingObserverInterface extends HookObserverInterface
{
    /**
     * Return an associative array this value and attributes.
     * <code>
     * [
     *     'value' => 'Users online',
     *     'attrs' => ['class' => 'text-center'],
     * ]
     * </code>.
     */
    public function trackingHeader(HookMyStudentsQuizTrackingEventInterface $hook): array;

    /**
     * Return an associative array this value and attributes.
     * <code>
     * [
     *     'value' => '5 connected users ',
     *     'attrs' => ['class' => 'text-center text-success'],
     * ]
     * </code>.
     */
    public function trackingContent(HookMyStudentsQuizTrackingEventInterface $hook): array;
}