trait CategoriesTrait

Class CategoriesMutatorsTrait.

Methods

$this
setCategories( array $categories)

No description

array|null
getCategories()

No description

bool
hasCategories()

No description

$this
clearCategories()

No description

bool
hasCategoryByValue( mixed $category)

No description

bool
hasCategory( string $index)

No description

string|null
getCategory( string $index)

No description

$this
setCategory( mixed $category, string $index = null)

No description

$this
removeCategory( string $index)

No description

$this
removeCategoryByValue($category)

No description

Details

at line line 40
$this setCategories( array $categories)

Parameters

array $categories

Return Value

$this

at line line 50
array|null getCategories()

Return Value

array|null

at line line 58
bool hasCategories()

Return Value

bool

at line line 66
$this clearCategories()

Return Value

$this

at line line 78
bool hasCategoryByValue( mixed $category)

Parameters

mixed $category

Return Value

bool

at line line 88
bool hasCategory( string $index)

Parameters

string $index

Return Value

bool

at line line 98
string|null getCategory( string $index)

Parameters

string $index

Return Value

string|null

at line line 109
$this setCategory( mixed $category, string $index = null)

Parameters

mixed $category
string $index

Return Value

$this

at line line 125
$this removeCategory( string $index)

Parameters

string $index

Return Value

$this

at line line 139
$this removeCategoryByValue($category)

Parameters

$category

Return Value

$this