Completed
Pull Request — devel (#146)
by Litera
24:35 queued 19:02
created

CredentialsEntity   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 36
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A toArray() 0 4 1
1
<?php
2
3
namespace App\Entities;
4
5
class CredentialsEntity implements IEntity
6
{
7
8
	public $id;
9
10
	public $guid;
11
12
	public $login;
13
14
	public $name;
15
16
	public $surname;
17
18
	public $nick;
19
20
	public $birthday;
21
22
	public $email;
23
24
	/**
25
	 * @return int
26
	 */
27
	public function getId()
28
	{
29
		return $this->id;
30
	}
31
32
	/**
33
	 * @return array
34
	 */
35
	public function toArray()
36
	{
37
		return get_object_vars($this);
38
	}
39
40
}
41