Total Complexity | 1 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
15 | class Discriminator extends AbstractObject |
||
16 | { |
||
17 | /** |
||
18 | * REQUIRED. The name of the property in the payload that will hold the discriminator value. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | public $propertyName; |
||
23 | |||
24 | /** |
||
25 | * An object to hold mappings between payload values and schema names or references. |
||
26 | * |
||
27 | * @var string[] array<string, string> |
||
28 | */ |
||
29 | public $mapping; |
||
30 | |||
31 | /** |
||
32 | * @param string $propertyName |
||
33 | * @param string[] $mapping |
||
34 | */ |
||
35 | 6 | public function __construct(string $propertyName, array $mapping = null) |
|
42 |