Issues (341)

src/XMLSchema/XML/AbstractOpenAttrs.php (1 issue)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimpleSAML\XMLSchema\XML;
6
7
use SimpleSAML\XMLSchema\XML\Constants\NS;
8
9
/**
10
 * Abstract class to be implemented by all the classes that use the openAttrs complex type
11
 *
12
 * @package simplesamlphp/xml-common
13
 */
14
abstract class AbstractOpenAttrs extends AbstractAnyType
15
{
16
    /** The namespace-attribute for the xs:anyAttribute element */
17
    public const string XS_ANY_ATTR_NAMESPACE = NS::OTHER;
0 ignored issues
show
A parse error occurred: Syntax error, unexpected T_STRING, expecting '=' on line 17 at column 24
Loading history...
18
19
20
    /**
21
     * AbstractAnyType constructor
22
     *
23
     * @param array<\SimpleSAML\XML\Attribute> $attributes
24
     */
25
    public function __construct(
26
        array $attributes = [],
27
    ) {
28
        /**
29
         * NOTE: no elements allowed here:
30
         *
31
         * @see XML Schema specification (Part 1, Section 3.4.2)
32
         *
33
         * If no content model is specified in a restriction, the content model is effectively empty
34
         * for elements unless mixed content is explicitly allowed.
35
         */
36
        parent::__construct([], $attributes);
37
    }
38
}
39