Completed
Pull Request — devel (#144)
by Litera
03:43
created

BlockEntity   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 48
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 BlockEntity implements IEntity
0 ignored issues
show
Coding Style introduced by
The property $display_progs is not named in camelCase.

This check marks property names that have not been written in camelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes databaseConnectionString.

Loading history...
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