\Charcoal\ObjectCategorizableInterface

Categorizable defines objects that can be associated to a category.

Summary

Methods
Constants
setCategoryType()
categoryType()
setCategory()
category()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

setCategoryType()

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

Set the type of category the object can belong to.

Parameters

string $type

The category type.

Returns

\Charcoal\Object\CategorizableInterface

Chainable

categoryType()

categoryType() : string

Retrieve the type of category the object can belong to.

Returns

string

setCategory()

setCategory(mixed  $category) : \Charcoal\Object\CategorizableInterface

Set the category the object belongs to.

Parameters

mixed $category

The object's category.

Returns

\Charcoal\Object\CategorizableInterface

Chainable