Completed
Push — master ( f61da2...430ae5 )
by Sam
03:08
created

User   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 3
Bugs 0 Features 2
Metric Value
wmc 1
c 3
b 0
f 2
lcom 0
cbo 0
dl 0
loc 17
ccs 0
cts 6
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A jsonSerialize() 0 6 1
1
<?php
2
3
namespace Jalle19\StatusManager\Database;
4
5
use Jalle19\StatusManager\Database\Base\User as BaseUser;
6
7
/**
8
 * @package   Jalle19\StatusManager\Database
9
 * @copyright Copyright &copy; Sam Stenvall 2015-
10
 * @license   https://www.gnu.org/licenses/gpl.html The GNU General Public License v2.0
11
 */
12
class User extends BaseUser implements \JsonSerializable
13
{
14
15
	const NAME_DVR = 'dvr';
16
17
18
	/**
19
	 * @inheritdoc
20
	 */
21
	public function jsonSerialize()
22
	{
23
		return [
24
			'name' => $this->getName(),
1 ignored issue
show
Bug introduced by
Consider using $this->name. There is an issue with getName() and APC-enabled PHP versions.
Loading history...
25
		];
26
	}
27
28
}
29