| 1 | <?php |
||
| 18 | class Exchange |
||
| 19 | { |
||
| 20 | use ExchangeValidator; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * La moneda de referencia para el Tipo de Cambio. |
||
| 24 | * |
||
| 25 | * @Assert\NotBlank() |
||
| 26 | * @Assert\Length(min="3", max="3") |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | private $monedaRef; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * La moneda objetivo para la Tasa de Cambio. |
||
| 33 | * |
||
| 34 | * @Assert\NotBlank() |
||
| 35 | * @Assert\Length(min="3", max="3") |
||
| 36 | * @var string |
||
| 37 | */ |
||
| 38 | private $monedaObj; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Tipo de Cambio. |
||
| 42 | * |
||
| 43 | * @Assert\NotBlank() |
||
| 44 | * @var float |
||
| 45 | */ |
||
| 46 | private $factor; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Fecha de cambio |
||
| 50 | * |
||
| 51 | * @Assert\NotBlank() |
||
| 52 | * @Assert\Date() |
||
| 53 | * @var \DateTime |
||
| 54 | */ |
||
| 55 | private $fecha; |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return string |
||
| 59 | */ |
||
| 60 | public function getMonedaRef() |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @param string $monedaRef |
||
| 67 | * @return Exchange |
||
| 68 | */ |
||
| 69 | public function setMonedaRef($monedaRef) |
||
| 74 | |||
| 75 | /** |
||
| 76 | * @return string |
||
| 77 | */ |
||
| 78 | public function getMonedaObj() |
||
| 82 | |||
| 83 | /** |
||
| 84 | * @param string $monedaObj |
||
| 85 | * @return Exchange |
||
| 86 | */ |
||
| 87 | public function setMonedaObj($monedaObj) |
||
| 92 | |||
| 93 | /** |
||
| 94 | * @return mixed |
||
| 95 | */ |
||
| 96 | public function getFactor() |
||
| 100 | |||
| 101 | /** |
||
| 102 | * @param mixed $factor |
||
| 103 | * @return Exchange |
||
| 104 | */ |
||
| 105 | public function setFactor($factor) |
||
| 110 | |||
| 111 | /** |
||
| 112 | * @return mixed |
||
| 113 | */ |
||
| 114 | public function getFecha() |
||
| 118 | |||
| 119 | /** |
||
| 120 | * @param mixed $fecha |
||
| 121 | * @return Exchange |
||
| 122 | */ |
||
| 123 | public function setFecha($fecha) |
||
| 128 | } |