class FacetedCategoryItem implements ItemInterface

Traits

Methods

string
__toString()

No description

create(string $label, Condition $condition = null, string|null $value = null, bool $default = false, bool $active = false, int|null $count = null)

No description

Condition
getCondition()

No description

int|null
getCount()

No description

string
getLabel()

No description

string
getValue()

No description

bool
isActive()

No description

bool
isDefault()

No description

bool
isDisabled()

Indicates if this item has been disabled and should not be displayed

array
jsonSerialize()

Transforms the array structure of this option into a JSON string.

void
setActive(bool $active = true)

No description

void
setCount(int $count)

Sets the count

void
setDefault(bool $default = true)

No description

void
setDisabled(bool $disabled = true)

Disable this item, so it will not be displayed

array
toArray()

No description

Details

at line 160
string __toString()

No description

Return Value

string

at line 129
static FacetedCategoryItem create(string $label, Condition $condition = null, string|null $value = null, bool $default = false, bool $active = false, int|null $count = null)

No description

Parameters

string $label
Condition $condition
string|null $value

If value is null and condition with value is given, the value is used

bool $default
bool $active
int|null $count

Return Value

FacetedCategoryItem

at line 110
Condition getCondition()

No description

Return Value

Condition

at line 93
int|null getCount()

No description

Return Value

int|null

at line 79
string getLabel()

No description

Return Value

string

at line 86
string getValue()

No description

Return Value

string

at line 26
bool isActive()

No description

Return Value

bool

at line 45
bool isDefault()

No description

Return Value

bool

at line 62
bool isDisabled()

Indicates if this item has been disabled and should not be displayed

Return Value

bool

in ItemTrait at line 13
array jsonSerialize()

Transforms the array structure of this option into a JSON string.

Return Value

array

at line 35
void setActive(bool $active = true)

No description

Parameters

bool $active

Return Value

void

at line 103
void setCount(int $count)

Sets the count

Parameters

int $count

Return Value

void

at line 54
void setDefault(bool $default = true)

No description

Parameters

bool $default

Return Value

void

at line 72
void setDisabled(bool $disabled = true)

Disable this item, so it will not be displayed

Parameters

bool $disabled

Return Value

void

at line 150
array toArray()

No description

Return Value

array