GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — dev ( a3afb5...70d7cd )
by Андрей
03:27
created

ObjectInfo::getObjectId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * @link  https://github.com/old-town/workflow-zf2-toolkit
4
 * @author  Malofeykin Andrey  <[email protected]>
5
 */
6
namespace OldTown\Workflow\ZF2\Toolkit\Entity\DoctrineWorkflowStory;
7
8
use Doctrine\Common\Collections\ArrayCollection;
9
10
/**
11
 * Class Object
12
 *
13
 * @ORM\Entity()
14
 * @ORM\Table(name="wf_object_info")
15
 *
16
 * @package OldTown\Workflow\ZF2\Toolkit\Entity\DoctrineWorkflowStory
17
 */
18
class ObjectInfo
19
{
20
    /**
21
     * Уникальный id данных о объекте
22
     *
23
     * @ORM\Id()
24
     * @ORM\Column(name="id", type="integer")
25
     * @ORM\GeneratedValue(strategy="IDENTITY")
26
     *
27
     * @var string
28
     */
29
    protected $id;
30
31
    /**
32
     * Имя класса объекта
33
     *
34
     * @ORM\Column(name="class_name", type="string", length=180)
35
     *
36
     *
37
     * @var string
38
     */
39
    protected $className;
40
41
    /**
42
     * id объекта
43
     *
44
     * @ORM\Column(name="object_id", type="string", length=50)
45
     *
46
     *
47
     * @var string
48
     */
49
    protected $objectId;
50
51
    /**
52
     * Псевдоним по которому можно обратиться к объекту
53
     *
54
     * @ORM\Column(name="alias", type="string", length=50)
55
     *
56
     *
57
     * @var string
58
     */
59
    protected $alias;
60
61
    /**
62
     * Все процессы workflow которые связанны с данным процесом
63
     *
64
     * @ORM\ManyToMany(targetEntity="Entry", mappedBy="entries")
65
     *
66
     * @var Entry[]|ArrayCollection
67
     */
68
    protected $entries;
69
70
    /**
71
     * Уникальный id данных о объект
72
     *
73
     * @return string
74
     */
75
    public function getId()
76
    {
77
        return $this->id;
78
    }
79
80
    /**
81
     * Возвращает уникальный id данных о объект
82
     *
83
     * @param string $id
84
     *
85
     * @return $this
86
     */
87
    public function setId($id)
88
    {
89
        $this->id = $id;
90
91
        return $this;
92
    }
93
94
    /**
95
     * Имя класса объекта
96
     *
97
     * @return string
98
     */
99
    public function getClassName()
100
    {
101
        return $this->className;
102
    }
103
104
    /**
105
     * Устанавливает имя класса объекта
106
     *
107
     * @param string $className
108
     *
109
     * @return $this
110
     */
111
    public function setClassName($className)
112
    {
113
        $this->className = $className;
114
115
        return $this;
116
    }
117
118
    /**
119
     * id объекта
120
     *
121
     * @return string
122
     */
123
    public function getObjectId()
124
    {
125
        return $this->objectId;
126
    }
127
128
    /**
129
     * Устанвливает id объекта
130
     *
131
     * @param string $objectId
132
     *
133
     * @return $this
134
     */
135
    public function setObjectId($objectId)
136
    {
137
        $this->objectId = $objectId;
138
139
        return $this;
140
    }
141
142
    /**
143
     * Псевдоним по которому можно обратиться к объекту
144
     *
145
     * @return string
146
     */
147
    public function getAlias()
148
    {
149
        return $this->alias;
150
    }
151
152
    /**
153
     * Устанавливает пседвоним по которому можно обратиться к объекту
154
     *
155
     * @param string $alias
156
     *
157
     * @return $this
158
     */
159
    public function setAlias($alias)
160
    {
161
        $this->alias = $alias;
162
163
        return $this;
164
    }
165
166
    /**
167
     * Возвращает все процессы wf,в которых участвует объект
168
     *
169
     * @return ArrayCollection|Entry[]
170
     */
171
    public function getEntries()
172
    {
173
        return $this->entries;
174
    }
175
176
    /**
177
     * Добавляет процесс wf, в котором задействован объект
178
     *
179
     * @param Entry $entry
180
     *
181
     * @return $this
182
     */
183
    public function addEntry(Entry $entry)
184
    {
185
        $entry->addObjectInfo($this);
186
        if (!$this->getEntries()->contains($entry)) {
187
            $this->getEntries()->add($entry);
188
        }
189
190
        return $this;
191
    }
192
193
}
194