Completed
Push — master ( 77ee69...2c1ebc )
by Marco
14:18
created

City::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Doctrine\Tests\Models\Quote;
4
5
/**
6
 * @Entity
7
 * @Table(name="`quote-city`")
8
 */
9
class City
10
{
11
    /**
12
     * @Id
13
     * @GeneratedValue
14
     * @Column(type="integer", name="`city-id`")
15
     */
16
    public $id;
17
18
    /**
19
     * @Column(name="`city-name`")
20
     */
21
    public $name;
22
23
    public function __construct(string $name)
24
    {
25
        $this->name = $name;
26
    }
27
}
28