| Total Complexity | 7 |
| Total Lines | 73 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class Mapping implements MappingInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | private $type; |
||
| 15 | /** |
||
| 16 | * @var array |
||
| 17 | */ |
||
| 18 | private $parameters = []; |
||
| 19 | /** |
||
| 20 | * @var MappingInterface[] |
||
| 21 | */ |
||
| 22 | private $properties = []; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return string |
||
| 26 | */ |
||
| 27 | public function getType(): string |
||
| 28 | { |
||
| 29 | return $this->type; |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param string $type |
||
| 34 | * @return $this |
||
| 35 | */ |
||
| 36 | public function setType(string $type) |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return array |
||
| 44 | */ |
||
| 45 | public function getParameters(): array |
||
| 46 | { |
||
| 47 | return $this->parameters; |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @param array $parameters |
||
| 52 | * @return $this |
||
| 53 | */ |
||
| 54 | public function setParameters(array $parameters) |
||
| 55 | { |
||
| 56 | $this->parameters = $parameters; |
||
| 57 | return $this; |
||
| 58 | } |
||
| 59 | |||
| 60 | public function setParameter(string $parameter, $value) |
||
| 64 | } |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @return MappingInterface[] |
||
| 68 | */ |
||
| 69 | public function getProperties(): array |
||
| 72 | } |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @param MappingInterface[] $properties |
||
| 76 | * @return $this |
||
| 77 | */ |
||
| 78 | public function setProperties(array $properties) |
||
| 82 | } |
||
| 83 | } |
||
| 84 |