Completed
Pull Request — development (#798)
by Nick
04:43
created

SecurityRolesEntity   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 1
lcom 1
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A isNew() 0 4 1
1
<?php
2
3
namespace Oc\Entity;
4
5
use Oc\Repository\AbstractEntity;
6
7
class SecurityRolesEntity extends AbstractEntity
8
{
9
	/** @var int */
10
	public $id;
11
12
	/** @var string */
13
	public $role;
14
15
16
	/**
17
	 * @return bool
18
	 */
19
	public function isNew(): bool
20
	{
21
		return $this->id === null;
22
	}
23
}
24