Passed
Pull Request — master (#7641)
by
unknown
12:21
created

CmsProduct::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Tests\Models\CMS;
6
7
use Doctrine\ORM\Annotation as ORM;
8
9
/**
10
 * CmsAddress
11
 *
12
 * @ORM\Entity
13
 * @ORM\Table(name="cms_products")
14
 */
15
class CmsProduct
16
{
17
    /**
18
     * @ORM\Column(type="integer")
19
     * @ORM\Id @ORM\GeneratedValue
20
     */
21
    public $id;
22
23
    /**
0 ignored issues
show
introduced by
Found multi-line comment for property \Doctrine\Tests\Models\CMS\CmsProduct::$name with single line content, use one-line comment instead.
Loading history...
24
     * @ORM\Column(type="string")
25
     */
26
    public $name;
27
28
    /**
0 ignored issues
show
introduced by
Found multi-line comment for property \Doctrine\Tests\Models\CMS\CmsProduct::$price with single line content, use one-line comment instead.
Loading history...
29
     * @ORM\Column(type="decimal")
30
     */
31
    public $price;
32
33
    /**
0 ignored issues
show
introduced by
Found multi-line comment for property \Doctrine\Tests\Models\CMS\CmsProduct::$created_at with single line content, use one-line comment instead.
Loading history...
34
     * @ORM\Column(type="datetime")
35
     */
36
    public $created_at;
37
38
    public function getId()
39
    {
40
        return $this->id;
41
    }
42
43
    public function getPrice()
44
    {
45
        return $this->price;
46
    }
47
48
    public function setPrice(float $price) {
49
        $this->price = $price;
50
    }
51
52
}
0 ignored issues
show
introduced by
There must be exactly 0 empty lines before class closing brace.
Loading history...
53