These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Kunstmaan\NodeBundle\Entity; |
||
4 | |||
5 | use Doctrine\ORM\Mapping as ORM; |
||
6 | |||
7 | /** |
||
8 | * NodeVersionLock |
||
9 | * |
||
10 | * @ORM\Table(name="kuma_node_version_lock", indexes={ |
||
11 | * @ORM\Index(name="nt_owner_public_idx", columns={"owner", "node_translation_id", "public_version"}), |
||
12 | * }) |
||
13 | * @ORM\Entity(repositoryClass="Kunstmaan\NodeBundle\Repository\NodeVersionLockRepository") |
||
14 | */ |
||
15 | class NodeVersionLock extends \Kunstmaan\AdminBundle\Entity\AbstractEntity |
||
16 | { |
||
17 | /** |
||
18 | * @var string |
||
19 | * |
||
20 | * @ORM\Column(name="owner", type="string", length=255) |
||
21 | */ |
||
22 | private $owner; |
||
23 | |||
24 | /** |
||
25 | * @var NodeTranslation |
||
26 | * |
||
27 | * @ORM\ManyToOne(targetEntity="Kunstmaan\NodeBundle\Entity\NodeTranslation") |
||
28 | * @ORM\JoinColumn(name="node_translation_id", referencedColumnName="id") |
||
29 | */ |
||
30 | private $nodeTranslation; |
||
31 | |||
32 | /** |
||
33 | * @var bool |
||
34 | * |
||
35 | * @ORM\Column(name="public_version", type="boolean") |
||
36 | */ |
||
37 | private $publicVersion; |
||
38 | |||
39 | /** |
||
40 | * @ORM\Column(name="created_at", type="datetime") |
||
41 | */ |
||
42 | private $createdAt; |
||
43 | |||
44 | /** |
||
45 | * Set createdAt |
||
46 | * |
||
47 | * @param \DateTime $createdAt |
||
48 | * |
||
49 | * @return NodeVersionLock |
||
50 | */ |
||
51 | 1 | public function setCreatedAt($createdAt) |
|
52 | { |
||
53 | 1 | $this->createdAt = $createdAt; |
|
54 | |||
55 | 1 | return $this; |
|
56 | } |
||
57 | |||
58 | /** |
||
59 | * Get createdAt |
||
60 | * |
||
61 | * @return \DateTime |
||
62 | */ |
||
63 | 1 | public function getCreatedAt() |
|
64 | { |
||
65 | 1 | return $this->createdAt; |
|
66 | } |
||
67 | |||
68 | /** |
||
69 | * @return bool |
||
70 | */ |
||
71 | 1 | public function isPublicVersion() |
|
72 | { |
||
73 | 1 | return $this->publicVersion; |
|
74 | } |
||
75 | |||
76 | /** |
||
77 | * @param bool $publicVersion |
||
78 | */ |
||
79 | 1 | public function setPublicVersion($publicVersion) |
|
80 | { |
||
81 | 1 | $this->publicVersion = $publicVersion; |
|
82 | 1 | } |
|
83 | |||
84 | /** |
||
85 | * Set owner |
||
86 | * |
||
87 | * @param string |
||
88 | * |
||
89 | * @return NodeVersionLock |
||
90 | */ |
||
91 | 1 | public function setOwner($owner) |
|
92 | { |
||
93 | 1 | $this->owner = $owner; |
|
94 | |||
95 | 1 | return $this; |
|
96 | } |
||
97 | |||
98 | /** |
||
99 | * Get owner |
||
100 | * |
||
101 | * @return string |
||
102 | */ |
||
103 | 1 | public function getOwner() |
|
104 | { |
||
105 | 1 | return $this->owner; |
|
106 | } |
||
107 | |||
108 | /** |
||
109 | * Set nodeTranslation |
||
110 | * |
||
111 | * @param \Kunstmaan\NodeBundle\Entity\NodeTranslation $nodeTranslation |
||
0 ignored issues
–
show
|
|||
112 | * |
||
113 | * @return NodeVersionLock |
||
114 | */ |
||
115 | 1 | public function setNodeTranslation(NodeTranslation $nodeTranslation = null) |
|
116 | { |
||
117 | 1 | $this->nodeTranslation = $nodeTranslation; |
|
118 | |||
119 | 1 | return $this; |
|
120 | } |
||
121 | |||
122 | /** |
||
123 | * Get nodeTranslation |
||
124 | * |
||
125 | * @return \Kunstmaan\NodeBundle\Entity\NodeTranslation |
||
126 | */ |
||
127 | 1 | public function getNodeTranslation() |
|
128 | { |
||
129 | 1 | return $this->nodeTranslation; |
|
130 | } |
||
131 | } |
||
132 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.