Skip to content

Commit d903504

Browse files
committed
Add interface for Config\Server.
1 parent ec6f595 commit d903504

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

src/Config/Server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Pdsinterop\Solid\Auth\Enum\OpenId\OpenIdConnectMetadata as OidcMeta;
77
use Pdsinterop\Solid\Auth\Exception\LogicException;
88

9-
class Server implements JsonSerializable
9+
class Server implements ServerInterface
1010
{
1111
////////////////////////////// CLASS PROPERTIES \\\\\\\\\\\\\\\\\\\\\\\\\\\\
1212

src/Config/ServerInterface.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
namespace Pdsinterop\Solid\Auth\Config;
4+
5+
use Pdsinterop\Solid\Auth\Exception\LogicException;
6+
7+
interface ServerInterface extends \JsonSerializable
8+
{
9+
public function get($key);
10+
11+
public function getRequired(): array;
12+
13+
public function __construct(array $data, bool $strict = false);
14+
15+
public function __toString(): string;
16+
17+
/**
18+
* @return array
19+
*
20+
* @throws LogicException for missing required properties
21+
*/
22+
public function jsonSerialize(): array;
23+
24+
public function validate(): bool;
25+
}

0 commit comments

Comments
 (0)