Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
9 / 9
100.00% covered (success)
100.00%
6 / 6
CRAP
100.00% covered (success)
100.00%
1 / 1
WebhookTaskContext
100.00% covered (success)
100.00%
9 / 9
100.00% covered (success)
100.00%
6 / 6
6
100.00% covered (success)
100.00%
1 / 1
 getTaskId
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setTaskId
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getWebhookTaskParams
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setWebhookTaskParams
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getWebhookConfig
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setWebhookConfig
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
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
21namespace oat\tao\model\webhooks\task;
22
23use oat\tao\model\webhooks\configEntity\WebhookInterface;
24
25class WebhookTaskContext
26{
27    /** @var string|null */
28    private $taskId;
29
30    /** @var WebhookTaskParams|null */
31    private $webhookTaskParams;
32
33    /** @var WebhookInterface|null */
34    private $webhookConfig;
35
36    /**
37     * @return string|null
38     */
39    public function getTaskId()
40    {
41        return $this->taskId;
42    }
43
44    /**
45     * @param string|null $taskId
46     * @return $this
47     */
48    public function setTaskId($taskId)
49    {
50        $this->taskId = $taskId;
51        return $this;
52    }
53
54    /**
55     * @return WebhookTaskParams|null
56     */
57    public function getWebhookTaskParams()
58    {
59        return $this->webhookTaskParams;
60    }
61
62    /**
63     * @param WebhookTaskParams|null $webhookTaskParams
64     * @return $this
65     */
66    public function setWebhookTaskParams($webhookTaskParams)
67    {
68        $this->webhookTaskParams = $webhookTaskParams;
69        return $this;
70    }
71
72    /**
73     * @return WebhookInterface|null
74     */
75    public function getWebhookConfig()
76    {
77        return $this->webhookConfig;
78    }
79
80    /**
81     * @param WebhookInterface|null $webhookConfig
82     * @return $this
83     */
84    public function setWebhookConfig($webhookConfig)
85    {
86        $this->webhookConfig = $webhookConfig;
87        return $this;
88    }
89}