VisitorEntity::toArray()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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