apie-lib /
openapi-schema
| 1 | <?php |
||
| 2 | |||
| 3 | |||
| 4 | namespace Apie\OpenapiSchema\Spec; |
||
| 5 | |||
| 6 | use Apie\CompositeValueObjects\CompositeValueObjectTrait; |
||
| 7 | use Apie\OpenapiSchema\Map\DiscriminatorMapping; |
||
| 8 | use Apie\ValueObjects\ValueObjectInterface; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @see https://swagger.io/specification/#discriminator-object |
||
| 12 | */ |
||
| 13 | class Discriminator implements ValueObjectInterface |
||
| 14 | { |
||
| 15 | use CompositeValueObjectTrait; |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | private $propertyName; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var null|DiscriminatorMapping |
||
| 24 | */ |
||
| 25 | private $mapping; |
||
|
0 ignored issues
–
show
|
|||
| 26 | |||
| 27 | public function __construct(string $propertyName) |
||
| 28 | { |
||
| 29 | $this->propertyName = $propertyName; |
||
| 30 | } |
||
| 31 | } |
||
| 32 |