| Total Complexity | 8 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Coverage | 94.12% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class Table implements IPillarAnnotation |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | * @Required() |
||
| 15 | */ |
||
| 16 | protected $name; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $identifier; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $code; |
||
| 27 | |||
| 28 | 6 | public function __construct($values) |
|
| 29 | { |
||
| 30 | 6 | if (isset($values['value'])) { |
|
| 31 | $this->name = $values['value']; |
||
| 32 | } |
||
| 33 | 6 | if (isset($values['name'])) { |
|
| 34 | 6 | $this->name = $values['name']; |
|
| 35 | } |
||
| 36 | 6 | $this->identifier = $this->name; |
|
| 37 | 6 | if (isset($values['identifier'])) { |
|
| 38 | 6 | $this->identifier = $values['identifier']; |
|
| 39 | } |
||
| 40 | 6 | if (isset($values['code'])) { |
|
| 41 | 6 | $this->code = $values['code']; |
|
| 42 | } |
||
| 43 | 6 | } |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | 6 | public function getName() |
|
| 49 | { |
||
| 50 | 6 | return $this->name; |
|
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | 6 | public function getIdentifier() |
|
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return string |
||
| 63 | */ |
||
| 64 | 6 | public function getCode() |
|
| 67 | } |
||
| 68 | } |
||
| 69 |