| 1 | <?php |
||
| 17 | class Legend |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @Assert\Length( |
||
| 21 | * min="4", |
||
| 22 | * max="4" |
||
| 23 | * ) |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | private $code; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @Assert\Length(max="100") |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | private $value; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | public function getCode() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param string $code |
||
| 44 | * @return Legend |
||
| 45 | */ |
||
| 46 | public function setCode($code) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | public function getValue() |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @param string $value |
||
| 62 | * @return Legend |
||
| 63 | */ |
||
| 64 | public function setValue($value) |
||
| 69 | |||
| 70 | } |