| 1 |
<?php declare(strict_types=1); |
| 2 |
|
| 3 |
/** |
| 4 |
* @license Apache 2.0 |
| 5 |
*/ |
| 6 |
|
| 7 |
namespace OpenApi\Attributes; |
| 8 |
|
| 9 |
use OpenApi\Annotations as OA; |
| 10 |
use OpenApi\Generator; |
| 11 |
|
| 12 |
#[\Attribute(\Attribute::TARGET_CLASS)] |
| 13 |
class Xml extends OA\Xml |
| 14 |
{ |
| 15 |
/** |
| 16 |
* @param array<string,mixed>|null $x |
| 17 |
* @param list<Attachable>|null $attachables |
| 18 |
*/ |
| 19 |
public function __construct( |
| 20 |
?string $name = null, |
| 21 |
?string $namespace = null, |
| 22 |
?string $prefix = null, |
| 23 |
?bool $attribute = null, |
| 24 |
?bool $wrapped = null, |
| 25 |
|
| 26 |
// abstract annotation |
| 27 |
?array $x = null, |
| 28 |
?array $attachables = null |
| 29 |
) { |
| 30 |
parent::__construct([ |
| 31 |
'name' => $name ?? Generator::UNDEFINED, |
| 32 |
'namespace' => $namespace ?? Generator::UNDEFINED, |
| 33 |
'prefix' => $prefix ?? Generator::UNDEFINED, |
| 34 |
'attribute' => $attribute ?? Generator::UNDEFINED, |
| 35 |
'wrapped' => $wrapped ?? Generator::UNDEFINED, |
| 36 |
'x' => $x ?? Generator::UNDEFINED, |
| 37 |
'attachables' => $attachables ?? Generator::UNDEFINED, |
| 38 |
]); |
| 39 |
} |
| 40 |
} |