| Total Complexity | 4 |
| Total Lines | 59 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class DefinitionProperty |
||
| 16 | { |
||
| 17 | const PROPERTY_TYPE_INT = 'INT'; |
||
| 18 | |||
| 19 | const PROPERTY_TYPE_STRING = 'STRING'; |
||
| 20 | |||
| 21 | const PROPERTY_TYPE_ARRAY = 'ARRAY'; |
||
| 22 | |||
| 23 | const PROPERTY_TYPE_BINARY_DATA = 'BINARY DATA'; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | private $name; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var string |
||
| 32 | */ |
||
| 33 | private $type; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @var string |
||
| 37 | */ |
||
| 38 | private $arrayElementName; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param string $name |
||
| 42 | * @param string $type |
||
| 43 | * @param string $arrayElementName |
||
| 44 | */ |
||
| 45 | public function __construct($name, $type, $arrayElementName = null) |
||
| 46 | { |
||
| 47 | $this->name = $name; |
||
| 48 | $this->type = $type; |
||
| 49 | $this->arrayElementName = $arrayElementName; |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | public function getName() |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return string |
||
| 62 | */ |
||
| 63 | public function getType() |
||
| 66 | } |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @return string |
||
| 70 | */ |
||
| 71 | public function getArrayElementName() |
||
| 76 |