User::jsonSerialize()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
ccs 0
cts 2
cp 0
crap 2
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(),
25
		];
26
	}
27
28
}
29