$categories
$categories : \Charcoal\Object\(mixed|array<mixed,\Charcoal\Object\CategoryInterface)>|\Charcoal\Object\Traversable
One or more categories the object belongs to.
Defines objects that can be associated to one or more categories.
Basic implementation of \Charcoal\Object\CategorizableMultipleInterface.
setCategoryType(string $type) : \Charcoal\Object\CategorizableMultipleInterface
Set the type of category the object can belong to.
string | $type | The category type. |
If the type argument is not a string.
Chainable
setCategories(array|\Charcoal\Object\Traversable $categories) : \Charcoal\Object\CategorizableMultipleInterface
Set the categories the object belongs to.
array|\Charcoal\Object\Traversable | $categories | The object's categories. |
Chainable