ObjectInterface
interface ObjectInterface (View source)
The interface that any object thay may have attributes must implement.
Methods
getAttributeValueObject(AttributeKeyInterface|string $ak, bool $createIfNotExists = false)
No description
getAttributeValue(AttributeKeyInterface|string $ak)
Alias of getAttributeValueObject (assuming $createIfNotExists is false).
mixed
getObjectAttributeCategory()
No description
setAttribute(AttributeKeyInterface|string $ak, AbstractValue|EmptyRequestAttributeValue|array $value)
Sets the attribute of of the ObjectInterface instance to the specified value, and persists it.
Details
AttributeValueInterface|null
getAttributeValueObject(AttributeKeyInterface|string $ak, bool $createIfNotExists = false)
No description
AttributeValueInterface|null
getAttributeValue(AttributeKeyInterface|string $ak)
Alias of getAttributeValueObject (assuming $createIfNotExists is false).
mixed
getAttribute(AttributeKeyInterface|string $ak, string|false $mode = false)
No description
CategoryInterface
getObjectAttributeCategory()
No description
clearAttribute(AttributeKeyInterface|string $ak)
No description
AttributeValueInterface
setAttribute(AttributeKeyInterface|string $ak, AbstractValue|EmptyRequestAttributeValue|array $value)
Sets the attribute of of the ObjectInterface instance to the specified value, and persists it.