Completed
Push — feature/update_all_the_things ( 324e2a...b9ab83 )
by Lucas
30:14 queued 13:01
created

QueueEvent::setCoreUserId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 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 $coreUserId
27
     */
28
    public $coreUserId;
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 2
    public function __construct()
44
    {
45 2
        $this->document = new \stdClass();
46 2
        $this->status = new \stdClass();
47 2
    }
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 2
    public function setEvent($event)
67
    {
68 2
        $this->event = $event;
69
70 2
        return $this;
71
    }
72
73
    /**
74
     * Get user Core Id
75
     *
76
     * @return string
77
     */
78
    public function getCoreUserId()
79
    {
80
        return $this->coreUserId;
81
    }
82
83
    /**
84
     * Set user Core Id
85
     *
86
     * @param string $coreUserId User Core Id
87
     *
88
     * @return self
89
     */
90 2
    public function setCoreUserId($coreUserId)
91
    {
92 2
        $this->coreUserId = $coreUserId;
93
94 2
        return $this;
95
    }
96
97
    /**
98
     * Get documentUrl
99
     *
100
     * @return string document url
101
     */
102
    public function getDocumenturl()
103
    {
104
        return $this->document->{'$ref'};
105
    }
106
107
    /**
108
     * Set documentUrl
109
     *
110
     * @param string $documentUrl value for documentUrl
111
     *
112
     * @return self
113
     */
114 2
    public function setDocumenturl($documentUrl)
115
    {
116 2
        $this->document->{'$ref'} = $documentUrl;
117 2
        return $this;
118
    }
119
120
    /**
121
     * Get statusUrl
122
     *
123
     * @return string document url
124
     */
125 2
    public function getStatusurl()
126
    {
127 2
        return $this->status->{'$ref'};
128
    }
129
130
    /**
131
     * Set statusUrl
132
     *
133
     * @param string $statusUrl value for statusUrl
134
     *
135
     * @return self
136
     */
137 2
    public function setStatusurl($statusUrl)
138
    {
139 2
        $this->status->{'$ref'} = $statusUrl;
140 2
        return $this;
141
    }
142
143
    /**
144
     * return translatable field names
145
     *
146
     * @return string[]
147
     */
148
    public function getTranslatableFields()
149
    {
150
        return [];
151
    }
152
153
    /**
154
     * return pretranslated field names
155
     *
156
     * @return string[]
157
     */
158
    public function getPreTranslatedFields()
159
    {
160
        return [];
161
    }
162
}
163