Completed
Pull Request — master (#7941)
by
unknown
62:39
created

CmsProduct::setPrice()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 1
c 1
b 1
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
declare(strict_types=1);
0 ignored issues
show
introduced by
Expected 2 newlines between PHP open tag and declare statement, found 1.
Loading history...
3
4
namespace Doctrine\Tests\Models\CMS;
5
6
use Doctrine\ORM\Annotation as ORM;
7
8
/**
9
 * CmsProduct
10
 *
11
 * @ORM\Entity
12
 * @ORM\Table(name="cms_products")
13
 */
14
class CmsProduct
15
{
16
    /**
17
     * @ORM\Column(type="integer")
18
     * @ORM\Id @ORM\GeneratedValue
19
     */
20
    public $id;
21
22
    /** @ORM\Column(type="string") */
23
    public $name;
24
25
    /** @ORM\Column(type="decimal") */
26
    public $price;
27
28
    /** @ORM\Column(type="datetime") */
29
    public $created_at;
30
31
    public function getId()
32
    {
33
        return $this->id;
34
    }
35
36
    public function getPrice()
37
    {
38
        return $this->price;
39
    }
40
41
    public function setPrice(float $price)
42
    {
43
        $this->price = $price;
44
    }
45
}
46