| 1 | <?php |
||
| 18 | class Payment |
||
| 19 | { |
||
| 20 | use PaymentValidator; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Moneda de pago (igual a la moneda del documento de referencia). |
||
| 24 | * |
||
| 25 | * @Assert\NotBlank() |
||
| 26 | * @Assert\Length(min="3", max="3") |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | private $moneda; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Importe del pago sin retención. |
||
| 33 | * |
||
| 34 | * @Assert\NotBlank() |
||
| 35 | * @var float |
||
| 36 | */ |
||
| 37 | private $importe; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Fecha de pag. |
||
| 41 | * |
||
| 42 | * @Assert\NotBlank() |
||
| 43 | * @Assert\Date() |
||
| 44 | * @var \DateTime |
||
| 45 | */ |
||
| 46 | private $fecha; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return string |
||
| 50 | */ |
||
| 51 | 10 | public function getMoneda() |
|
| 52 | { |
||
| 53 | 10 | return $this->moneda; |
|
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @param string $moneda |
||
| 58 | * @return Payment |
||
| 59 | */ |
||
| 60 | 26 | public function setMoneda($moneda) |
|
| 65 | |||
| 66 | /** |
||
| 67 | * @return float |
||
| 68 | */ |
||
| 69 | 10 | public function getImporte() |
|
| 73 | |||
| 74 | /** |
||
| 75 | * @param float $importe |
||
| 76 | * @return Payment |
||
| 77 | */ |
||
| 78 | 26 | public function setImporte($importe) |
|
| 83 | |||
| 84 | /** |
||
| 85 | * @return \DateTime |
||
| 86 | */ |
||
| 87 | 10 | public function getFecha() |
|
| 91 | |||
| 92 | /** |
||
| 93 | * @param \DateTime $fecha |
||
| 94 | * @return Payment |
||
| 95 | */ |
||
| 96 | 26 | public function setFecha($fecha) |
|
| 101 | } |