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   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 115
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1
Metric Value
wmc 8
lcom 0
cbo 1
dl 0
loc 115
rs 10

8 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getId() 0 4 1
A getCachedPostCount() 0 4 1
A setCachedPostCount() 0 6 1
A getCachedKarmaPositiveCount() 0 4 1
A setCachedKarmaPositiveCount() 0 6 1
A getCachedKarmaNegativeCount() 0 4 1
A setCachedKarmaNegativeCount() 0 6 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;
15
16
use CCDNForum\ForumBundle\Entity\Model\Registry as AbstractRegistry;
17
18
/**
19
 *
20
 * @category CCDNForum
21
 * @package  ForumBundle
22
 *
23
 * @author   Reece Fowell <[email protected]>
24
 * @license  http://opensource.org/licenses/MIT MIT
25
 * @version  Release: 2.0
26
 * @link     https://github.com/codeconsortium/CCDNForumForumBundle
27
 *
28
 */
29
class Registry extends AbstractRegistry
30
{
31
    /**
32
     *
33
     * @var integer $id
34
     */
35
    protected $id;
36
37
    /**
38
     *
39
     * @var integer $cachedPostCount
40
     */
41
    protected $cachedPostCount = 0;
42
43
    /**
44
     *
45
     * @var integer $cachedKarmaPositiveCount
46
     */
47
    protected $cachedKarmaPositiveCount = 0;
0 ignored issues
show
Comprehensibility Naming introduced by
The variable name $cachedKarmaPositiveCount exceeds the maximum configured length of 20.

Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.

Loading history...
48
49
    /**
50
     *
51
     * @var integer $cachedKarmaNegativeCount
52
     */
53
    protected $cachedKarmaNegativeCount = 0;
0 ignored issues
show
Comprehensibility Naming introduced by
The variable name $cachedKarmaNegativeCount exceeds the maximum configured length of 20.

Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.

Loading history...
54
55
    /**
56
     *
57
     * @access public
58
     */
59
    public function __construct()
60
    {
61
        parent::__construct();
62
        // your own logic
63
    }
64
65
    /**
66
     * Get id
67
     *
68
     * @return integer
69
     */
70
    public function getId()
71
    {
72
        return $this->id;
73
    }
74
75
    /**
76
     * Get cachedPostCount
77
     *
78
     * @return integer
79
     */
80
    public function getCachedPostCount()
81
    {
82
        return $this->cachedPostCount;
83
    }
84
85
    /**
86
     * Set cachedPostCount
87
     *
88
     * @param  integer  $cachedPostCount
89
     * @return Registry
90
     */
91
    public function setCachedPostCount($cachedPostCount)
92
    {
93
        $this->cachedPostCount = $cachedPostCount;
94
95
        return $this;
96
    }
97
98
    /**
99
     * Get cachedKarmaPositiveCount
100
     *
101
     * @return integer
102
     */
103
    public function getCachedKarmaPositiveCount()
104
    {
105
        return $this->cachedKarmaPositiveCount;
106
    }
107
108
    /**
109
     * Set cachedKarmaPositiveCount
110
     *
111
     * @param  integer  $cachedKarmaPositiveCount
112
     * @return Registry
113
     */
114
    public function setCachedKarmaPositiveCount($cachedKarmaPositiveCount)
0 ignored issues
show
Comprehensibility Naming introduced by
The variable name $cachedKarmaPositiveCount exceeds the maximum configured length of 20.

Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.

Loading history...
115
    {
116
        $this->cachedKarmaPositiveCount = $cachedKarmaPositiveCount;
117
118
        return $this;
119
    }
120
121
    /**
122
     * Get cachedKarmaNegativeCount
123
     *
124
     * @return integer
125
     */
126
    public function getCachedKarmaNegativeCount()
127
    {
128
        return $this->cachedKarmaNegativeCount;
129
    }
130
131
    /**
132
     * Set cachedKarmaNegativeCount
133
     *
134
     * @param  integer  $cachedKarmaNegativeCount
135
     * @return Registry
136
     */
137
    public function setCachedKarmaNegativeCount($cachedKarmaNegativeCount)
0 ignored issues
show
Comprehensibility Naming introduced by
The variable name $cachedKarmaNegativeCount exceeds the maximum configured length of 20.

Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.

Loading history...
138
    {
139
        $this->cachedKarmaNegativeCount = $cachedKarmaNegativeCount;
140
141
        return $this;
142
    }
143
}
144