HasColor
Provides an optional display color for a schema entity.
The color is a house property — a presentation hint layered on top of the
harvested data, expressed as a #RRGGBB hex string. It is extracted into a
dedicated trait so it can be composed by any entity a user interface needs to
tint, without duplicating the property declaration : the thesaurus families
(ThesaurusTerm, ProductCategoryTerm, ProductPriceCategoryTerm,
ThesaurusDomain and ThesaurusScheme), the product type
(ProductType) and the document line (BusinessDocumentLine).
The companion property name constant lives next to the composing entity : in
ThesaurusTermTrait for the thesaurus families, in the products
ProductType constants trait for the product type and in
BusinessDocumentLineTrait for the document line. All of them carry the
same 'color' value.
Tags
Table of Contents
Properties
- $color : string|null
- An optional house color, expressed as a `#RRGGBB` hex string.
Properties
$color
An optional house color, expressed as a `#RRGGBB` hex string.
public
string|null
$color
Example:
$term->color = '#7B1E3A' ;