final class WorkspaceName implements JsonSerializable (View source)

Name of a workspace.

The name uniquely identifies a workspace in its Content Repository instance

Constants

MAX_LENGTH

private PATTERN

WORKSPACE_NAME_LIVE

Methods

static WorkspaceName
fromString(string $value)

No description

static WorkspaceName|null
tryFromString(string $value)

No description

static WorkspaceName
forLive()

No description

static WorkspaceName
transliterateFromString(string $name)

Transforms a text (for example a workspace title) into a valid workspace name by removing invalid characters and transliterating special characters if possible.

bool
isLive()

No description

string
jsonSerialize()

No description

bool
equals(WorkspaceName $other)

No description

string
__toString()

No description

Details

static WorkspaceName fromString(string $value)

No description

Parameters

string $value

Return Value

WorkspaceName

static WorkspaceName|null tryFromString(string $value)

No description

Parameters

string $value

Return Value

WorkspaceName|null

static WorkspaceName forLive()

No description

Return Value

WorkspaceName

static WorkspaceName transliterateFromString(string $name)

Transforms a text (for example a workspace title) into a valid workspace name by removing invalid characters and transliterating special characters if possible.

Parameters

string $name

The possibly invalid name

Return Value

WorkspaceName

bool isLive()

No description

Return Value

bool

string jsonSerialize()

No description

Return Value

string

bool equals(WorkspaceName $other)

No description

Parameters

WorkspaceName $other

Return Value

bool

string __toString()

No description

Return Value

string