Skip to content

Commit 13d7708

Browse files
committed
Add interfaces for (a)synchronous bindings
1 parent 0b92a98 commit 13d7708

File tree

6 files changed

+32
-4
lines changed

6 files changed

+32
-4
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace SimpleSAML\SAML2\Binding;
6+
7+
/**
8+
* Interface grouping common functionality for asynchronous bindings.
9+
*
10+
* @package simplesamlphp/saml2
11+
*/
12+
interface AsynchronousBindingInterface
13+
{
14+
}

src/Binding/HTTPArtifact.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
*
4343
* @package simplesamlphp/saml2
4444
*/
45-
class HTTPArtifact extends Binding implements RelayStateInterface
45+
class HTTPArtifact extends Binding implements AsynchronousBindingInterface, RelayStateInterface
4646
{
4747
use RelayStateTrait;
4848

src/Binding/HTTPPost.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*
2828
* @package simplesamlphp/saml2
2929
*/
30-
class HTTPPost extends Binding implements RelayStateInterface
30+
class HTTPPost extends Binding implements AsynchronousBindingInterface, RelayStateInterface
3131
{
3232
use RelayStateTrait;
3333

src/Binding/HTTPRedirect.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
*
3939
* @package simplesamlphp/saml2
4040
*/
41-
class HTTPRedirect extends Binding implements RelayStateInterface
41+
class HTTPRedirect extends Binding implements AsynchronousBindingInterface, RelayStateInterface
4242
{
4343
use RelayStateTrait;
4444

src/Binding/SOAP.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*
3030
* @package simplesamlphp/saml2
3131
*/
32-
class SOAP extends Binding
32+
class SOAP extends Binding implements SynchronousBindingInterface
3333
{
3434
/**
3535
* @param \SimpleSAML\SAML2\XML\samlp\AbstractMessage $message
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace SimpleSAML\SAML2\Binding;
6+
7+
/**
8+
* Interface grouping common functionality for synchronous bindings.
9+
*
10+
* @package simplesamlphp/saml2
11+
*/
12+
interface SynchronousBindingInterface
13+
{
14+
}

0 commit comments

Comments
 (0)