BusinessIdentityTrait
Defines the custom property names of the {@see \xyz\oihana\schema\business\BusinessIdentity} schema entity.
Centralizing these keys avoids hardcoded string literals and provides a single source of truth for hydration and serialization.
Note — this trait is intentionally not aggregated into the global Oihana constants class: its
SUBJECTkey collides with the already-aggregated PermissionTrait::SUBJECT. It is composed directly by theBusinessIdentityentity instead.
Typical usage:
$identity[ BusinessIdentityTrait::SUBJECT ] = new Person([ '_key' => '94565' ]) ;
Tags
Table of Contents
Constants
- SUBJECT : string = 'subject'
- The business entity the account is linked to (a person or an organization).
Constants
SUBJECT
The business entity the account is linked to (a person or an organization).
public
string
SUBJECT
= 'subject'
Related model property:
public null|string|Person|Organization|Thing $subject ;