Oihana PHP System

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 SUBJECT key collides with the already-aggregated PermissionTrait::SUBJECT. It is composed directly by the BusinessIdentity entity instead.

Typical usage:

$identity[ BusinessIdentityTrait::SUBJECT ] = new Person([ '_key' => '94565' ]) ;
Tags
author

Marc Alcaraz (ekameleon)

since
1.0.2

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 ;
On this page

Search results