WebVIEP Plugin

BoothStatus
in package

FinalYes

Value object representing the lifecycle status of a booth.

Table of Contents

Constants

ARCHIVED  = 'archived'
DRAFT  = 'draft'
PUBLISHED  = 'published'
ALLOWED  = [self::DRAFT, self::PUBLISHED, self::ARCHIVED]

Properties

$value  : string

Methods

__construct()  : mixed
all()  : array<string|int, string>
Return all allowed status strings.
fromString()  : self
isArchived()  : bool
Whether the status represents archived.
isDraft()  : bool
Whether the status represents a draft.
isPublished()  : bool
Whether the status represents published.
isValid()  : bool
value()  : string
Return the raw status string.

Constants

ALLOWED

private mixed ALLOWED = [self::DRAFT, self::PUBLISHED, self::ARCHIVED]

Properties

Methods

__construct()

public __construct(string $value) : mixed
Parameters
$value : string

One of BoothStatus constants

Tags
throws
InvalidArgumentException

all()

Return all allowed status strings.

public static all() : array<string|int, string>
Return values
array<string|int, string>

fromString()

public static fromString(string $status) : self
Parameters
$status : string
Return values
self

isArchived()

Whether the status represents archived.

public isArchived() : bool
Return values
bool

isDraft()

Whether the status represents a draft.

public isDraft() : bool
Return values
bool

isPublished()

Whether the status represents published.

public isPublished() : bool
Return values
bool

isValid()

public static isValid(string $status) : bool
Parameters
$status : string
Return values
bool

value()

Return the raw status string.

public value() : string
Return values
string

        
On this page

Search results