Skip to content

Commit c66cd30

Browse files
committed
Migrate to ArrayizableElementInterface
1 parent 2138266 commit c66cd30

13 files changed

Lines changed: 26 additions & 13 deletions

src/SAML2/XML/md/AbstractLocalizedName.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use SimpleSAML\XML\Constants as C;
1010
use SimpleSAML\XML\Exception\InvalidDOMElementException;
1111
use SimpleSAML\XML\Exception\MissingAttributeException;
12+
use SimpleSAML\XML\ArrayizableElementInterface;
1213
use SimpleSAML\XML\StringElementTrait;
1314

1415
use function array_key_first;
@@ -18,7 +19,7 @@
1819
*
1920
* @package simplesamlphp/saml2
2021
*/
21-
abstract class AbstractLocalizedName extends AbstractMdElement
22+
abstract class AbstractLocalizedName extends AbstractMdElement implements ArrayizableElementInterface
2223
{
2324
use StringElementTrait;
2425

src/SAML2/XML/md/ContactPerson.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use SimpleSAML\SAML2\Exception\ProtocolViolationException;
1212
use SimpleSAML\SAML2\Utils\XPath;
1313
use SimpleSAML\SAML2\XML\ExtendableElementTrait;
14+
use SimpleSAML\XML\ArrayizableElementInterface;
1415
use SimpleSAML\XML\Exception\InvalidDOMElementException;
1516
use SimpleSAML\XML\Exception\TooManyElementsException;
1617
use SimpleSAML\XML\ExtendableAttributesTrait;
@@ -28,7 +29,7 @@
2829
*
2930
* @package simplesamlphp/saml2
3031
*/
31-
final class ContactPerson extends AbstractMdElement
32+
final class ContactPerson extends AbstractMdElement implements ArrayizableElementInterface
3233
{
3334
use ExtendableElementTrait;
3435
use ExtendableAttributesTrait;

src/SAML2/XML/md/EmailAddress.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66

77
use DOMElement;
88
use SimpleSAML\Assert\Assert;
9+
use SimpleSAML\XML\ArrayizableElementInterface;
910
use SimpleSAML\XML\StringElementTrait;
1011

1112
/**
1213
* Class implementing EmailAddress.
1314
*
1415
* @package simplesamlphp/saml2
1516
*/
16-
final class EmailAddress extends AbstractMdElement
17+
final class EmailAddress extends AbstractMdElement implements ArrayizableElementInterface
1718
{
1819
use StringElementTrait;
1920

src/SAML2/XML/md/Organization.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use SimpleSAML\Assert\Assert;
1111
use SimpleSAML\SAML2\Exception\ProtocolViolationException;
1212
use SimpleSAML\SAML2\XML\ExtendableElementTrait;
13+
use SimpleSAML\XML\ArrayizableElementInterface;
1314
use SimpleSAML\XML\Exception\InvalidDOMElementException;
1415
use SimpleSAML\XML\Exception\MissingElementException;
1516
use SimpleSAML\XML\Exception\TooManyElementsException;
@@ -24,7 +25,7 @@
2425
*
2526
* @package simplesamlphp/saml2
2627
*/
27-
final class Organization extends AbstractMdElement
28+
final class Organization extends AbstractMdElement implements ArrayizableElementInterface
2829
{
2930
use ExtendableAttributesTrait;
3031
use ExtendableElementTrait;

src/SAML2/XML/md/TelephoneNumber.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66

77
use DOMElement;
88
use SimpleSAML\Assert\Assert;
9+
use SimpleSAML\XML\ArrayizableElementInterface;
910
use SimpleSAML\XML\StringElementTrait;
1011

1112
/**
1213
* Class implementing TelephoneNumber.
1314
*
1415
* @package simplesamlphp/saml2
1516
*/
16-
final class TelephoneNumber extends AbstractMdElement
17+
final class TelephoneNumber extends AbstractMdElement implements ArrayizableElementInterface
1718
{
1819
use StringElementTrait;
1920

src/SAML2/XML/mdrpi/Publication.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use DOMElement;
88
use SimpleSAML\Assert\Assert;
99
use SimpleSAML\SAML2\Exception\ProtocolViolationException;
10+
use SimpleSAML\XML\ArrayizableElementInterface;
1011
use SimpleSAML\XML\Exception\InvalidDOMElementException;
1112
use SimpleSAML\XML\Utils as XMLUtils;
1213

@@ -16,7 +17,7 @@
1617
* @link: http://docs.oasis-open.org/security/saml/Post2.0/saml-metadata-rpi/v1.0/saml-metadata-rpi-v1.0.pdf
1718
* @package simplesamlphp/saml2
1819
*/
19-
final class Publication extends AbstractMdrpiElement
20+
final class Publication extends AbstractMdrpiElement implements ArrayizableElementInterface
2021
{
2122
/**
2223
* Create/parse a mdrpi:PublicationInfo element.

src/SAML2/XML/mdrpi/PublicationInfo.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use DOMElement;
88
use SimpleSAML\Assert\Assert;
99
use SimpleSAML\SAML2\Exception\ProtocolViolationException;
10+
use SimpleSAML\XML\ArrayizableElementInterface;
1011
use SimpleSAML\XML\Exception\InvalidDOMElementException;
1112
use SimpleSAML\XML\Utils as XMLUtils;
1213

@@ -16,7 +17,7 @@
1617
* @link: http://docs.oasis-open.org/security/saml/Post2.0/saml-metadata-rpi/v1.0/saml-metadata-rpi-v1.0.pdf
1718
* @package simplesamlphp/saml2
1819
*/
19-
final class PublicationInfo extends AbstractMdrpiElement
20+
final class PublicationInfo extends AbstractMdrpiElement implements ArrayizableElementInterface
2021
{
2122
/**
2223
* Create/parse a mdrpi:PublicationInfo element.

src/SAML2/XML/mdrpi/PublicationPath.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use DOMElement;
88
use SimpleSAML\Assert\Assert;
99
use SimpleSAML\SAML2\Exception\ProtocolViolationException;
10+
use SimpleSAML\XML\ArrayizableElementInterface;
1011
use SimpleSAML\XML\Exception\InvalidDOMElementException;
1112
use SimpleSAML\XML\Utils as XMLUtils;
1213

@@ -16,7 +17,7 @@
1617
* @link: http://docs.oasis-open.org/security/saml/Post2.0/saml-metadata-rpi/v1.0/saml-metadata-rpi-v1.0.pdf
1718
* @package simplesamlphp/saml2
1819
*/
19-
final class PublicationPath extends AbstractMdrpiElement
20+
final class PublicationPath extends AbstractMdrpiElement implements ArrayizableElementInterface
2021
{
2122
/**
2223
* Create/parse a mdrpi:PublicationPath element.

src/SAML2/XML/mdrpi/RegistrationInfo.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use DOMElement;
88
use SimpleSAML\Assert\Assert;
99
use SimpleSAML\SAML2\Exception\ProtocolViolationException;
10+
use SimpleSAML\XML\ArrayizableElementInterface;
1011
use SimpleSAML\XML\Exception\InvalidDOMElementException;
1112
use SimpleSAML\XML\Utils as XMLUtils;
1213

@@ -16,7 +17,7 @@
1617
* @link: http://docs.oasis-open.org/security/saml/Post2.0/saml-metadata-rpi/v1.0/saml-metadata-rpi-v1.0.pdf
1718
* @package simplesamlphp/saml2
1819
*/
19-
final class RegistrationInfo extends AbstractMdrpiElement
20+
final class RegistrationInfo extends AbstractMdrpiElement implements ArrayizableElementInterface
2021
{
2122
/**
2223
* Create/parse a mdrpi:RegistrationInfo element.

src/SAML2/XML/mdui/DiscoHints.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use DOMElement;
88
use SimpleSAML\Assert\Assert;
99
use SimpleSAML\SAML2\Utils\XPath;
10+
use SimpleSAML\XML\ArrayizableElementInterface;
1011
use SimpleSAML\XML\Chunk;
1112
use SimpleSAML\XML\Constants as C;
1213
use SimpleSAML\XML\Exception\InvalidDOMElementException;
@@ -18,7 +19,7 @@
1819
* @link: http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-metadata-ui/v1.0/sstc-saml-metadata-ui-v1.0.pdf
1920
* @package simplesamlphp/saml2
2021
*/
21-
final class DiscoHints extends AbstractMduiElement
22+
final class DiscoHints extends AbstractMduiElement implements ArrayizableElementInterface
2223
{
2324
use ExtendableElementTrait;
2425

0 commit comments

Comments
 (0)