Completed
Push — feature/EVO-4410-username-id-t... ( c473ea )
by
unknown
10:56
created

QueueEvent::setCoreId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
/**
3
 * queueevent
4
 */
5
6
namespace Graviton\RabbitMqBundle\Document;
7
8
use Graviton\I18nBundle\Document\TranslatableDocumentInterface;
9
10
/**
11
 * Graviton\RabbitMqBundle\Document\QueueEvent
12
 *
13
 * @author   List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
14
 * @license  http://opensource.org/licenses/gpl-license.php GNU Public License
15
 * @link     http://swisscom.ch
16
 */
17
class QueueEvent implements TranslatableDocumentInterface
18
{
19
20
    /**
21
     * @var string $event
22
     */
23
    public $event;
24
25
    /**
26
     * @var string $coreId
27
     */
28
    public $coreId;
29
30
    /**
31
     * @var \stdClass $document
32
     */
33
    public $document;
34
35
    /**
36
     * @var \stdClass $status
37
     */
38
    public $status;
39
40
    /**
41
     * constructor
42
     */
43
    public function __construct()
44
    {
45
        $this->document = new \stdClass();
46
        $this->status = new \stdClass();
47
    }
48
49
    /**
50
     * Get event
51
     *
52
     * @return string $event
53
     */
54
    public function getEvent()
55
    {
56
        return $this->event;
57
    }
58
59
    /**
60
     * Set event
61
     *
62
     * @param string $event value for event
63
     *
64
     * @return self
65
     */
66
    public function setEvent($event)
67
    {
68
        $this->event = $event;
69
70
        return $this;
71
    }
72
73
    /**
74
     * Get user Core Id
75
     *
76
     * @return string
77
     */
78
    public function getCoreId()
79
    {
80
        return $this->coreId;
81
    }
82
83
    /**
84
     * Set user Core Id
85
     * 
86
     * @param string $coreId
87
     */
88
    public function setCoreId($coreId)
89
    {
90
        $this->coreId = $coreId;
91
    }
92
93
    /**
94
     * Get documentUrl
95
     *
96
     * @return string document url
97
     */
98
    public function getDocumenturl()
99
    {
100
        return $this->document->{'$ref'};
101
    }
102
103
    /**
104
     * Set documentUrl
105
     *
106
     * @param string $documentUrl value for documentUrl
107
     *
108
     * @return self
109
     */
110
    public function setDocumenturl($documentUrl)
111
    {
112
        $this->document->{'$ref'} = $documentUrl;
113
        return $this;
114
    }
115
116
    /**
117
     * Get statusUrl
118
     *
119
     * @return string document url
120
     */
121
    public function getStatusurl()
122
    {
123
        return $this->status->{'$ref'};
124
    }
125
126
    /**
127
     * Set statusUrl
128
     *
129
     * @param string $statusUrl value for statusUrl
130
     *
131
     * @return self
132
     */
133
    public function setStatusurl($statusUrl)
134
    {
135
        $this->status->{'$ref'} = $statusUrl;
136
        return $this;
137
    }
138
139
    /**
140
     * return translatable field names
141
     *
142
     * @return string[]
143
     */
144
    public function getTranslatableFields()
145
    {
146
        return [];
147
    }
148
149
    /**
150
     * return pretranslated field names
151
     *
152
     * @return string[]
153
     */
154
    public function getPreTranslatedFields()
155
    {
156
        return [];
157
    }
158
}
159