Completed
Push — standalone ( d5557b...6e54cd )
by Philip
02:01
created

MinimalEntity   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 19
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Dontdrinkandroot\RestBundle\Tests\Functional\TestBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
use Dontdrinkandroot\RestBundle\Metadata\Annotation as REST;
7
8
/**
9
 * @ORM\Entity()
10
 * @REST\RootResource()
11
 */
12
class MinimalEntity
13
{
14
    /**
15
     * @ORM\Column(type="integer", nullable=false)
16
     * @ORM\Id()
17
     * @ORM\GeneratedValue()
18
     *
19
     * @var int
20
     */
21
    private $id;
22
23
    /**
24
     * @return mixed
25
     */
26
    public function getId(): int
27
    {
28
        return $this->id;
29
    }
30
}
31