VisitorEntity   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 34
rs 10
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A toArray() 0 4 1
1
<?php
2
3
namespace App\Entities;
4
5
class VisitorEntity
0 ignored issues
show
Coding Style introduced by
The property $postal_code 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...
Coding Style introduced by
The property $group_name 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...
Coding Style introduced by
The property $group_num 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...
Coding Style introduced by
The property $troop_name 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 $name;
9
10
	public $surname;
11
12
	public $nick;
13
14
	public $email;
15
16
	public $street;
17
18
	public $city;
19
20
	public $postal_code;
21
22
	public $birthday;
23
24
	public $group_name;
25
26
	public $group_num;
27
28
	public $troop_name;
29
30
	/**
31
	 * @return array
32
	 */
33
	public function toArray()
34
	{
35
		return array_filter(get_object_vars($this));
36
	}
37
38
}
39