Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 3
CRAP
0.00% covered (danger)
0.00%
0 / 1
DeliveryLogEvent
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 3
12
0.00% covered (danger)
0.00%
0 / 1
 getName
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 __construct
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getId
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3/**
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; under version 2
7 * of the License (non-upgradable).
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17 *
18 * Copyright (c) 2019  (original work) Open Assessment Technologies SA;
19 *
20 * @author Oleksandr Zagovorychev <zagovorichev@gmail.com>
21 */
22
23namespace oat\taoProctoring\model\deliveryLog\event;
24
25use oat\oatbox\event\Event;
26
27class DeliveryLogEvent implements Event
28{
29    public const EVENT_NAME = __CLASS__;
30
31    public const EVENT_ID_TEST_EXIT_CODE = 'TEST_EXIT_CODE';
32    public const EVENT_ID_SECTION_EXIT_CODE = 'SECTION_EXIT_CODE';
33    public const EVENT_ID_TEST_PAUSE = 'TEST_PAUSE';
34    public const EVENT_ID_TEST_CANCEL = 'TEST_CANCEL';
35    public const EVENT_ID_TEST_RUN = 'TEST_RUN';
36    public const EVENT_ID_TEST_RESUME = 'TEST_RESUME';
37    public const EVENT_ID_TEST_AUTHORISE = 'TEST_AUTHORISE';
38    public const EVENT_ID_TEST_TERMINATE = 'TEST_TERMINATE';
39    public const EVENT_ID_TEST_IRREGULARITY = 'TEST_IRREGULARITY';
40    public const EVENT_ID_TEST_ADJUST_TIME = 'TEST_ADJUST_TIME';
41
42    /**
43     * @var int unique identifier of the record in the delivery_log table
44     */
45    private $id;
46
47    public function getName(): string
48    {
49        return self::EVENT_NAME;
50    }
51
52    public function __construct($id)
53    {
54        $this->id = $id;
55    }
56
57    public function getId(): int
58    {
59        return $this->id;
60    }
61}