Skip to content

Commit

Permalink
Merge pull request #131 from petski/organization-alias
Browse files Browse the repository at this point in the history
feat: Add alias and redirectUrl to Organization
  • Loading branch information
fschmtt authored Oct 17, 2024
2 parents 8a58bb0 + 486ce2e commit f7af30b
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/Representation/Organization.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,34 @@

namespace Fschmtt\Keycloak\Representation;

use Fschmtt\Keycloak\Attribute\Since;
use Fschmtt\Keycloak\Collection\IdentityProviderCollection;
use Fschmtt\Keycloak\Collection\OrganizationDomainCollection;
use Fschmtt\Keycloak\Collection\UserCollection;
use Fschmtt\Keycloak\Type\Map;

/**
* @method string|null getId()
* @method string|null getName()
* @method bool|null getEnabled()
* @method string|null getDescription()
* @method Map|null getAttributes()
* @method OrganizationDomainCollection|null getDomains()
* @method UserCollection|null getMembers()
* @method IdentityProviderCollection|null getIdentityProviders()
* @method string|null getAlias()
* @method string|null getRedirectUrl()
* @method self withId(?string $id)
* @method self withName(?string $name)
* @method self withEnabled(?bool $enabled)
* @method self withDescription(?string $description)
* @method self withAttributes(?Map $attributes)
* @method self withDomains(?OrganizationDomainCollection $domains)
* @method self withMembers(?UserCollection $members)
* @method self withIdentityProviders(?IdentityProviderCollection $identityProviders)
* @method self withAlias(?string $alias)
* @method self withRedirectUrl(?string $redirectUrl)
*
* @codeCoverageIgnore
*/
class Organization extends Representation
Expand All @@ -23,5 +45,9 @@ public function __construct(
protected ?OrganizationDomainCollection $domains = null,
protected ?UserCollection $members = null,
protected ?IdentityProviderCollection $identityProviders = null,
#[Since('26.0.0')]
protected ?string $alias = null,
#[Since('26.0.0')]
protected ?string $redirectUrl = null,
) {}
}

0 comments on commit f7af30b

Please sign in to comment.