| 1 | <?php |
||
| 18 | class Direction |
||
| 19 | { |
||
| 20 | use DirectionValidator; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @Assert\NotBlank() |
||
| 24 | * @Assert\Length(max="8") |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | private $ubigueo; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Direccion completa y detallada. |
||
| 31 | * |
||
| 32 | * @Assert\NotBlank() |
||
| 33 | * @Assert\Length(max="100") |
||
| 34 | * @var string |
||
| 35 | */ |
||
| 36 | private $direccion; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Direction constructor. |
||
| 40 | * @param string $ubigueo |
||
| 41 | * @param string $direccion |
||
| 42 | */ |
||
| 43 | 12 | public function __construct($ubigueo, $direccion) |
|
| 48 | |||
| 49 | |||
| 50 | /** |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | 4 | public function getUbigueo() |
|
| 57 | |||
| 58 | /** |
||
| 59 | * @param string $ubigueo |
||
| 60 | * @return Direction |
||
| 61 | */ |
||
| 62 | 8 | public function setUbigueo($ubigueo) |
|
| 63 | { |
||
| 64 | 8 | $this->ubigueo = $ubigueo; |
|
| 65 | 8 | return $this; |
|
| 66 | } |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @return string |
||
| 70 | */ |
||
| 71 | 4 | public function getDireccion() |
|
| 75 | |||
| 76 | /** |
||
| 77 | * @param string $direccion |
||
| 78 | * @return Direction |
||
| 79 | */ |
||
| 80 | 8 | public function setDireccion($direccion) |
|
| 85 | } |