Completed
Push — master ( d914a9...c540fc )
by Oleg
02:23
created

Stock::getCreatedAt()   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
declare(strict_types=1);
3
4
namespace SlayerBirden\DFCodeGeneration\Catalog\Entities;
5
6
use Doctrine\ORM\Mapping as ORM;
7
8
/**
9
 * @ORM\Entity @ORM\Table(name="stock")
10
 **/
11
class Stock
12
{
13
    /**
14
     * @ORM\Id @ORM\Column(type="integer") @ORM\GeneratedValue
15
     * @var integer|null
16
     **/
17
    private $id;
18
    /**
19
     * @ORM\Column(type="float")
20
     * @var float
21
     **/
22
    private $qty;
23
    /**
24
     * @ORM\Column(type="datetime")
25
     * @var \DateTime
26
     **/
27
    private $createdAt;
28
29
    /**
30
     * @return int|null
31
     */
32
    public function getId(): ?int
33
    {
34
        return $this->id;
35
    }
36
37
    /**
38
     * @return float
39
     */
40
    public function getQty(): float
41
    {
42
        return $this->qty;
43
    }
44
45
    /**
46
     * @param float $qty
47
     */
48
    public function setQty(float $qty): void
49
    {
50
        $this->qty = $qty;
51
    }
52
53
    /**
54
     * @return \DateTime
55
     */
56
    public function getCreatedAt(): \DateTime
57
    {
58
        return $this->createdAt;
59
    }
60
61
    /**
62
     * @param \DateTime $createdAt
63
     */
64
    public function setCreatedAt(\DateTime $createdAt): void
65
    {
66
        $this->createdAt = $createdAt;
67
    }
68
}
69