WorkOS PHP SDK

OrganizationInput
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Table of Contents

Interfaces

JsonSerializable

Properties

$allowProfilesOutsideOrganization  : bool|null
Whether the organization allows profiles from outside the organization to sign in.
$domainData  : array<string|int, OrganizationDomainData>|null
The domains associated with the organization, including verification state.
$domains  : array<string|int, string>|null
The domains associated with the organization. Deprecated in favor of `domain_data`.
$externalId  : string|null
An external identifier for the Organization.
$metadata  : array<string, string>|null
Object containing [metadata](https://workos.com/docs/authkit/metadata) key/value pairs associated with the Organization.
$name  : string
The name of the organization.

Methods

__construct()  : mixed
fromArray()  : self
jsonSerialize()  : array<string|int, mixed>
toArray()  : array<string|int, mixed>

Properties

$allowProfilesOutsideOrganization

Whether the organization allows profiles from outside the organization to sign in.

public bool|null $allowProfilesOutsideOrganization = null

$domains

The domains associated with the organization. Deprecated in favor of `domain_data`.

public array<string|int, string>|null $domains = null

$externalId

An external identifier for the Organization.

public string|null $externalId = null

$metadata

Object containing [metadata](https://workos.com/docs/authkit/metadata) key/value pairs associated with the Organization.

public array<string, string>|null $metadata = null

Methods

__construct()

public __construct(string $name[, bool|null $allowProfilesOutsideOrganization = null ][, array<string|int, mixed>|null $domains = null ][, array<string|int, mixed>|null $domainData = null ][, array<string|int, mixed>|null $metadata = null ][, string|null $externalId = null ]) : mixed
Parameters
$name : string
$allowProfilesOutsideOrganization : bool|null = null
$domains : array<string|int, mixed>|null = null
$domainData : array<string|int, mixed>|null = null
$metadata : array<string|int, mixed>|null = null
$externalId : string|null = null

fromArray()

public static fromArray(array<string|int, mixed> $data) : self
Parameters
$data : array<string|int, mixed>
Return values
self

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

toArray()

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results