Oihana PHP System

ThesaurusTermTrait

Defines the custom property names of the {@see \xyz\oihana\schema\thesaurus\ThesaurusTerm} schema entity.

Centralizing these keys avoids hardcoded string literals and provides a single source of truth for hydration and serialization.

It is composed by the ThesaurusTerm entity and aggregated, through ThesaurusTrait, into the global Oihana constants class (its COLOR value matches the other COLOR keys already exposed there).

Typical usage:

$term[ ThesaurusTermTrait::COLOR ] = '#22C55E' ;
Tags
author

Marc Alcaraz (ekameleon)

since
1.1.1

Table of Contents

Constants

COLOR  : string = 'color'
A house color, expressed as a `#RRGGBB` hex string.

Constants

COLOR

A house color, expressed as a `#RRGGBB` hex string.

public string COLOR = 'color'

Related model property:

public ?string $color ;
On this page

Search results