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.

Post::getUnlockedBy()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the CCDNForum ForumBundle
5
 *
6
 * (c) CCDN (c) CodeConsortium <http://www.codeconsortium.com/>
7
 *
8
 * Available on github <http://www.github.com/codeconsortium/>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace CCDNForum\ForumBundle\Entity\Model;
15
16
use Symfony\Component\Security\Core\User\UserInterface;
17
18
use CCDNForum\ForumBundle\Entity\Topic as ConcreteTopic;
19
20
abstract class Post
21
{
22
    /** @var Topic $topic */
23
    protected $topic = null;
24
25
    /** @var UserInterface $createdBy */
26
    protected $createdBy;
27
28
    /** @var UserInterface $editedBy */
29
    protected $editedBy = null;
30
31
    /** @var UserInterface $deletedBy */
32
    protected $deletedBy = null;
33
34
    /** @var Attachment $attachment */
35
    protected $attachment = null;
36
37
    /** @var UserInterface $unlockedBy */
38
    protected $unlockedBy = null;
39
40
    /**
41
     *
42
     * @access public
43
     */
44
    public function __construct()
45
    {
46
        // your own logic
47
    }
48
49
    /**
50
     * Get topic
51
     *
52
     * @return Topic
53
     */
54
    public function getTopic()
55
    {
56
        return $this->topic;
57
    }
58
59
    /**
60
     * Set topic
61
     *
62
     * @param  Topic $topic
0 ignored issues
show
Documentation introduced by
Should the type for parameter $topic not be null|ConcreteTopic?

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.

Loading history...
63
     * @return Post
64
     */
65
    public function setTopic(ConcreteTopic $topic = null)
66
    {
67
        $this->topic = $topic;
68
69
        return $this;
70
    }
71
72
    /**
73
     * Get created_by
74
     *
75
     * @return UserInterface
76
     */
77
    public function getCreatedBy()
78
    {
79
        return $this->createdBy;
80
    }
81
82
    /**
83
     * Set created_by
84
     *
85
     * @param  UserInterface $createdBy
0 ignored issues
show
Documentation introduced by
Should the type for parameter $createdBy not be null|UserInterface?

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.

Loading history...
86
     * @return Post
87
     */
88
    public function setCreatedBy(UserInterface $createdBy = null)
89
    {
90
        $this->createdBy = $createdBy;
91
92
        return $this;
93
    }
94
95
    /**
96
     * Get edited_by
97
     *
98
     * @return UserInterface
99
     */
100
    public function getEditedBy()
101
    {
102
        return $this->editedBy;
103
    }
104
105
    /**
106
     * Set edited_by
107
     *
108
     * @param  UserInterface $editedBy
0 ignored issues
show
Documentation introduced by
Should the type for parameter $editedBy not be null|UserInterface?

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.

Loading history...
109
     * @return Post
110
     */
111
    public function setEditedBy(UserInterface $editedBy = null)
112
    {
113
        $this->editedBy = $editedBy;
114
115
        return $this;
116
    }
117
118
    /**
119
     * Get deleted_by
120
     *
121
     * @return UserInterface
122
     */
123
    public function getDeletedBy()
124
    {
125
        return $this->deletedBy;
126
    }
127
128
    /**
129
     * Set deleted_by
130
     *
131
     * @param  UserInterface $deletedBy
0 ignored issues
show
Documentation introduced by
Should the type for parameter $deletedBy not be null|UserInterface?

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.

Loading history...
132
     * @return Post
133
     */
134
    public function setDeletedBy(UserInterface $deletedBy = null)
135
    {
136
        $this->deletedBy = $deletedBy;
137
138
        return $this;
139
    }
140
141
    /**
142
     * Get unlocked_by
143
     *
144
     * @return UserInterface
145
     */
146
    public function getUnlockedBy()
147
    {
148
        return $this->unlockedBy;
149
    }
150
151
    /**
152
     * Set unlocked_by
153
     *
154
     * @param  UserInterface $unlockedBy
0 ignored issues
show
Documentation introduced by
Should the type for parameter $unlockedBy not be null|UserInterface?

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.

Loading history...
155
     * @return Post
156
     */
157
    public function setUnlockedBy(UserInterface $unlockedBy = null)
158
    {
159
        $this->unlockedBy = $unlockedBy;
160
161
        return $this;
162
    }
163
}
164