-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from fschmtt/add-features-to-serverinfo
Add features to serverinfo
- Loading branch information
Showing
4 changed files
with
52 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Fschmtt\Keycloak\Collection; | ||
|
||
use Fschmtt\Keycloak\Representation\Feature; | ||
|
||
/** | ||
* @extends Collection<Feature> | ||
* | ||
* @codeCoverageIgnore | ||
*/ | ||
class FeatureCollection extends Collection | ||
{ | ||
public static function getRepresentationClass(): string | ||
{ | ||
return Feature::class; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Fschmtt\Keycloak\Representation; | ||
|
||
/** | ||
* @method string|null getName() | ||
* @method string|null getLabel() | ||
* @method string|null getType() | ||
* @method string[]|null getDependencies() | ||
* @method bool|null getEnabled() | ||
* | ||
* @codeCoverageIgnore | ||
*/ | ||
class Feature extends Representation | ||
{ | ||
public function __construct( | ||
protected ?string $name = null, | ||
protected ?string $label = null, | ||
protected ?string $type = null, | ||
/** @var string[] $dependencies */ | ||
protected ?array $dependencies = null, | ||
protected ?bool $enabled = null, | ||
) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters