Code Duplication    Length = 46-48 lines in 2 locations

app/entities/BlockEntity.php 1 location

@@ 5-52 (lines=48) @@
2
3
namespace App\Entities;
4
5
class BlockEntity implements IEntity
6
{
7
8
	public $id;
9
10
	public $name;
11
12
	public $from;
13
14
	public $to;
15
16
	public $day;
17
18
	public $description;
19
20
	public $material;
21
22
	public $tutor;
23
24
	public $email;
25
26
	public $program;
27
28
	public $display_progs;
29
30
	public $capacity;
31
32
	public $category;
33
34
	public $meeting;
35
36
	/**
37
	 * @return int
38
	 */
39
	public function getId()
40
	{
41
		return $this->id;
42
	}
43
44
	/**
45
	 * @return array
46
	 */
47
	public function toArray()
48
	{
49
		return get_object_vars($this);
50
	}
51
52
}
53

app/entities/PersonEntity.php 1 location

@@ 5-50 (lines=46) @@
2
3
namespace App\Entities;
4
5
class PersonEntity implements IEntity
6
{
7
8
	public $id;
9
10
	public $guid;
11
12
	public $name;
13
14
	public $surname;
15
16
	public $nick;
17
18
	public $birthday;
19
20
	public $email;
21
22
	public $street;
23
24
	public $city;
25
26
	public $postal_code;
27
28
	public $created_at;
29
30
	public $updated_at;
31
32
	public $deleted_at;
33
34
	/**
35
	 * @return int
36
	 */
37
	public function getId()
38
	{
39
		return $this->id;
40
	}
41
42
	/**
43
	 * @return array
44
	 */
45
	public function toArray()
46
	{
47
		return get_object_vars($this);
48
	}
49
50
}
51