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) 2019 (original work) Open Assessment Technologies SA ; |
| 19 | */ |
| 20 | |
| 21 | namespace oat\taoDelivery\model\execution; |
| 22 | |
| 23 | use JsonSerializable; |
| 24 | |
| 25 | interface DeliveryExecutionContextInterface extends JsonSerializable |
| 26 | { |
| 27 | public const PARAM_EXECUTION_ID = 'execution_id'; |
| 28 | public const PARAM_CONTEXT_ID = 'context_id'; |
| 29 | public const PARAM_TYPE = 'type'; |
| 30 | public const PARAM_LABEL = 'label'; |
| 31 | public const PARAM_EXTRA_DATA = 'extra_data'; |
| 32 | |
| 33 | /** |
| 34 | * @param string $executionId |
| 35 | */ |
| 36 | public function setExecutionId(string $executionId): void; |
| 37 | |
| 38 | /** |
| 39 | * @return string |
| 40 | */ |
| 41 | public function getExecutionId(): string; |
| 42 | |
| 43 | /** |
| 44 | * @param string $contextId |
| 45 | */ |
| 46 | public function setExecutionContextId(string $contextId): void; |
| 47 | |
| 48 | /** |
| 49 | * @return string |
| 50 | */ |
| 51 | public function getExecutionContextId(): string; |
| 52 | |
| 53 | /** |
| 54 | * @param string $type |
| 55 | */ |
| 56 | public function setType(string $type): void; |
| 57 | |
| 58 | /** |
| 59 | * @return string |
| 60 | */ |
| 61 | public function getType(): string; |
| 62 | |
| 63 | /** |
| 64 | * @param string $label |
| 65 | */ |
| 66 | public function setLabel(string $label): void; |
| 67 | |
| 68 | /** |
| 69 | * @return string |
| 70 | */ |
| 71 | public function getLabel(): string; |
| 72 | |
| 73 | /** |
| 74 | * @param array $data |
| 75 | */ |
| 76 | public function setExtraData(array $data): void; |
| 77 | |
| 78 | /** |
| 79 | * @return array |
| 80 | */ |
| 81 | public function getExtraData(): array; |
| 82 | } |