\Charcoal\ObjectCategorizableMultipleInterface

Defines objects that can be associated to one or more categories.

Summary

Methods
Constants
setCategoryType()
categoryType()
setCategories()
categories()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

setCategoryType()

setCategoryType(string  $type) : \Charcoal\Object\CategorizableMultipleInterface

Set the type of category the object can belong to.

Parameters

string $type

The category type.

Returns

\Charcoal\Object\CategorizableMultipleInterface

Chainable

categoryType()

categoryType() : string

Retrieve the type of category the object can belong to.

Returns

string

setCategories()

setCategories(array|\Charcoal\Object\Traversable  $categories) : \Charcoal\Object\CategorizableMultipleInterface

Set the categories the object belongs to.

Parameters

array|\Charcoal\Object\Traversable $categories

The object's categories.

Returns

\Charcoal\Object\CategorizableMultipleInterface

Chainable

categories()

categories() : array|\Charcoal\Object\Traversable

Retrieve the categories the object belongs to.

Returns

array|\Charcoal\Object\Traversable