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.

Registry::setOwnedBy()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
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
abstract class Registry
19
{
20
    /** @var UserInterface $ownedBy */
21
    protected $ownedBy = null;
22
23
    /**
24
     *
25
     * @access public
26
     */
27
    public function __construct()
28
    {
29
        // your own logic
30
    }
31
32
    /**
33
     * Get owned_by
34
     *
35
     * @return UserInterface
36
     */
37
    public function getOwnedBy()
38
    {
39
        return $this->ownedBy;
40
    }
41
42
    /**
43
     * Set owned_by
44
     *
45
     * @param  UserInterface $ownedBy
0 ignored issues
show
Documentation introduced by
Should the type for parameter $ownedBy 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...
46
     * @return Registry
47
     */
48
    public function setOwnedBy(UserInterface $ownedBy = null)
49
    {
50
        $this->ownedBy = $ownedBy;
51
52
        return $this;
53
    }
54
}
55