Oihana PHP Arango

ServiceHasPoliciesTrait

Standalone trait for the `service_has_policies` Edges model dependency.

Extracted from ZitadelServiceTrait so any controller / trait needing to traverse or mutate the service ↔ policy relation can opt-in independently. Pairs naturally with PoliciesModelTrait but stays composable on its own.

Tags
author

Marc Alcaraz

Table of Contents

Constants

SERVICE_HAS_POLICIES  : string = 'serviceHasPolicies'
Initialization key for the service_has_policies Edges model.

Properties

$serviceHasPolicies  : Edges|null
The service_has_policies Edges model.

Methods

initializeServiceHasPolicies()  : static
Initializes the service_has_policies edges dependency from the $init array.

Constants

SERVICE_HAS_POLICIES

Initialization key for the service_has_policies Edges model.

public string SERVICE_HAS_POLICIES = 'serviceHasPolicies'

Properties

Methods

initializeServiceHasPolicies()

Initializes the service_has_policies edges dependency from the $init array.

protected initializeServiceHasPolicies(array<string|int, mixed> $init, Container|null $container) : static
Parameters
$init : array<string|int, mixed>

The initialization array.

$container : Container|null

The DI container.

Tags
throws
ContainerExceptionInterface
NotFoundExceptionInterface
Return values
static
On this page

Search results