| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class PropertyMarker2Mapper |
||
| 14 | { |
||
| 15 | /** @var string */ |
||
| 16 | private $default; |
||
| 17 | /** @var string[] */ |
||
| 18 | private $mappings; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Annotation2Mapper constructor. |
||
| 22 | * |
||
| 23 | * @param string $default Class name of the default mapper |
||
| 24 | * @param string[] $mappings Mapping from annotation to mapper class |
||
| 25 | */ |
||
| 26 | 394 | public function __construct($default, $mappings) |
|
| 30 | 394 | } |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @param PropertyMappingMarker $marker |
||
| 34 | * |
||
| 35 | * @return mixed |
||
| 36 | */ |
||
| 37 | 36 | public function createMapper(PropertyMappingMarker $marker) |
|
| 50 |