Completed
Push — master ( 02745e...0cb812 )
by Valentin
07:17
created

SchematicEntity   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 29
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getName() 0 4 1
A setName() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Cycle\ORM\Promise\Tests\Fixtures;
5
6
/**
7
 * @entity
8
 */
9
class SchematicEntity
10
{
11
    /**
12
     * @column(type=primary)
13
     * @var int
14
     */
15
    protected $id;
16
17
    /**
18
     * @column(type=string)
19
     * @var string
20
     */
21
    protected $name;
22
23
    public function getId(): int
24
    {
25
        return $this->id;
26
    }
27
28
    public function getName(): string
29
    {
30
        return $this->name;
31
    }
32
33
    public function setName(string $name): void
34
    {
35
        $this->name = $name;
36
    }
37
}