| 1 | <?php |
||
| 18 | class Payment |
||
| 19 | { |
||
| 20 | use PaymentValidator; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Moneda de pago. |
||
| 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 mixed |
||
| 50 | */ |
||
| 51 | public function getMoneda() |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @param mixed $moneda |
||
| 58 | * @return Payment |
||
| 59 | */ |
||
| 60 | public function setMoneda($moneda) |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @return mixed |
||
| 68 | */ |
||
| 69 | public function getImporte() |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @param mixed $importe |
||
| 76 | * @return Payment |
||
| 77 | */ |
||
| 78 | public function setImporte($importe) |
||
| 83 | |||
| 84 | /** |
||
| 85 | * @return mixed |
||
| 86 | */ |
||
| 87 | public function getFecha() |
||
| 91 | |||
| 92 | /** |
||
| 93 | * @param mixed $fecha |
||
| 94 | * @return Payment |
||
| 95 | */ |
||
| 96 | public function setFecha($fecha) |
||
| 101 | } |