1 | <?php |
||
16 | class PaymentLine extends BasePaymentLine |
||
17 | { |
||
18 | /** |
||
19 | * @var int |
||
20 | * |
||
21 | * @ORM\Id |
||
22 | * @ORM\Column(name="id", type="integer") |
||
23 | * @ORM\GeneratedValue(strategy="AUTO") |
||
24 | */ |
||
25 | protected $id; |
||
26 | |||
27 | /** |
||
28 | * @Assert\NotBlank() |
||
29 | * @Assert\Length(max="191") |
||
30 | * |
||
31 | * @ORM\Column(type="string", length=191) |
||
32 | */ |
||
33 | protected $productNumber; |
||
34 | |||
35 | /** |
||
36 | * @Assert\NotBlank() |
||
37 | * @Assert\Length(max="191") |
||
38 | * |
||
39 | * @ORM\Column(type="string", length=191) |
||
40 | */ |
||
41 | protected $name; |
||
42 | |||
43 | /** |
||
44 | * @Assert\NotBlank() |
||
45 | * @Assert\GreaterThan(0) |
||
46 | * |
||
47 | * @ORM\Column(type="integer") |
||
48 | */ |
||
49 | protected $quantity; |
||
50 | |||
51 | /** |
||
52 | * @Assert\NotBlank() |
||
53 | * |
||
54 | * @ORM\Column(type="integer") |
||
55 | */ |
||
56 | protected $priceAmount; |
||
57 | |||
58 | /** |
||
59 | * @Assert\NotBlank() |
||
60 | * |
||
61 | * @ORM\Column(type="string") |
||
62 | */ |
||
63 | protected $priceCurrency; |
||
64 | |||
65 | /** |
||
66 | * @Assert\NotBlank() |
||
67 | * @Assert\GreaterThanOrEqual(0) |
||
68 | * |
||
69 | * @ORM\Column(type="integer") |
||
70 | */ |
||
71 | protected $vat; |
||
72 | |||
73 | /** |
||
74 | * @Assert\NotNull() |
||
75 | * |
||
76 | * @ORM\JoinColumn(nullable=false, onDelete="CASCADE") |
||
77 | * @ORM\ManyToOne(targetEntity="Payment", inversedBy="paymentLines") |
||
78 | */ |
||
79 | protected $payment; |
||
80 | |||
81 | /** |
||
82 | * @return int |
||
83 | */ |
||
84 | public function getId(): ?int |
||
88 | |||
89 | /** |
||
90 | * @param mixed $id |
||
91 | * |
||
92 | * @return PaymentLine |
||
93 | */ |
||
94 | public function setId($id): self |
||
100 | |||
101 | public function setPrice(Money $price): DandomainPaymentLine |
||
110 | |||
111 | public function getPrice(): Money |
||
124 | } |
||
125 |