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

CredentialsEntity::toArray()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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