Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
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) 2015 (original work) Open Assessment Technologies SA;
19 *
20 *
21 */
22
23namespace oat\taoProctoring\model\monitorCache;
24
25use oat\taoDelivery\model\execution\DeliveryExecutionContextInterface;
26use oat\taoDelivery\model\execution\DeliveryExecutionInterface;
27use qtism\runtime\tests\AssessmentTestSession;
28use oat\taoDelivery\model\execution\DeliveryExecution;
29
30/**
31 * Interface DeliveryMonitoringData
32 *
33 * Represents data model of delivery execution.
34 *
35 * @package oat\taoProctoring\model
36 * @author Aleh Hutnikau <hutnikau@1pt.com>
37 */
38interface DeliveryMonitoringData
39{
40    public const PARAM_EXECUTION_CONTEXT = 'execution_context';
41
42    /**
43     * Set delivery execution
44     * @param DeliveryExecution $deliveryExecution
45     */
46    public function setDeliveryExecution(DeliveryExecution $deliveryExecution);
47
48    /**
49     * @return DeliveryExecutionInterface
50     */
51    public function getDeliveryExecution();
52
53    /**
54     * @param DeliveryExecutionContextInterface $context
55     */
56    public function setDeliveryExecutionContext(DeliveryExecutionContextInterface $context);
57
58    /**
59     * @return DeliveryExecutionContextInterface|null
60     */
61    public function getDeliveryExecutionContext();
62
63    /**
64     * Set test session
65     * @param AssessmentTestSession $testSession
66     */
67    public function setTestSession(AssessmentTestSession $testSession);
68
69    /**
70     * Get delivery execution data
71     * @return array
72     */
73    public function get();
74
75    /**
76     * Updates a single cashed variable
77     *
78     * @param string $key
79     * @param string $value
80     */
81    public function update($key, $value);
82
83    /**
84     * Validate data
85     * @return boolean
86     */
87    public function validate();
88
89    /**
90     * Refresh all the delivery information
91     * @param array|null $keys list of fields to update
92     */
93    public function updateData(array $keys = null);
94}