simplesamlphp /
xml-common
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace SimpleSAML\XMLSchema\XML; |
||
| 6 | |||
| 7 | use SimpleSAML\XMLSchema\Type\IDValue; |
||
| 8 | use SimpleSAML\XMLSchema\Type\NCNameValue; |
||
| 9 | use SimpleSAML\XMLSchema\Type\QNameValue; |
||
| 10 | use SimpleSAML\XMLSchema\Type\StringValue; |
||
| 11 | use SimpleSAML\XMLSchema\XML\Constants\NS; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Abstract class representing the topLevelAttribute-type. |
||
| 15 | * |
||
| 16 | * @package simplesamlphp/xml-common |
||
| 17 | */ |
||
| 18 | abstract class AbstractTopLevelAttribute extends AbstractAttribute |
||
| 19 | { |
||
| 20 | /** The namespace-attribute for the xs:anyAttribute element */ |
||
| 21 | public const string XS_ANY_ATTR_NAMESPACE = NS::OTHER; |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 22 | |||
| 23 | |||
| 24 | /** |
||
| 25 | * TopLevelAttribute constructor |
||
| 26 | * |
||
| 27 | * @param \SimpleSAML\XMLSchema\Type\NCNameValue $name |
||
| 28 | * @param \SimpleSAML\XMLSchema\Type\QNameValue $type |
||
| 29 | * @param \SimpleSAML\XMLSchema\Type\StringValue|null $default |
||
| 30 | * @param \SimpleSAML\XMLSchema\Type\StringValue|null $fixed |
||
| 31 | * @param \SimpleSAML\XMLSchema\XML\LocalSimpleType|null $simpleType |
||
| 32 | * @param \SimpleSAML\XMLSchema\XML\Annotation|null $annotation |
||
| 33 | * @param \SimpleSAML\XMLSchema\Type\IDValue|null $id |
||
| 34 | * @param array<\SimpleSAML\XML\Attribute> $namespacedAttributes |
||
| 35 | */ |
||
| 36 | public function __construct( |
||
| 37 | NCNameValue $name, |
||
| 38 | ?QNameValue $type = null, |
||
| 39 | ?StringValue $default = null, |
||
| 40 | ?StringValue $fixed = null, |
||
| 41 | ?LocalSimpleType $simpleType = null, |
||
| 42 | ?Annotation $annotation = null, |
||
| 43 | ?IDValue $id = null, |
||
| 44 | array $namespacedAttributes = [], |
||
| 45 | ) { |
||
| 46 | parent::__construct( |
||
| 47 | name: $name, |
||
| 48 | type: $type, |
||
| 49 | default: $default, |
||
| 50 | fixed: $fixed, |
||
| 51 | simpleType: $simpleType, |
||
| 52 | annotation: $annotation, |
||
| 53 | id: $id, |
||
| 54 | namespacedAttributes: $namespacedAttributes, |
||
| 55 | ); |
||
| 56 | } |
||
| 57 | } |
||
| 58 |