Oihana PHP System

TreeMetricsTrait

Defines the property name constants of the structural tree metrics carried by {@see \xyz\oihana\schema\thesaurus\traits\HasTreeMetrics}.

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

It is aggregated, through ThesaurusTrait, into the global Oihana constants class, so the field is reachable via Oihana::CHILDREN_COUNT.

Typical usage:

$term[ TreeMetricsTrait::CHILDREN_COUNT ] = 8 ;
Tags
author

Marc Alcaraz (ekameleon)

since
1.2.1

Table of Contents

Constants

CHILDREN_COUNT  : string = 'childrenCount'
The number of direct children — the count of `narrower` concepts.

Constants

CHILDREN_COUNT

The number of direct children — the count of `narrower` concepts.

public string CHILDREN_COUNT = 'childrenCount'

Related model property:

public ?int $childrenCount ;
On this page

Search results