Fr3nch13/CakePHP Utilities

PropertyMarshalInterface

Behaviors implementing this interface can participate in entity marshalling.

This enables behaviors to define behavior for how the properties they provide/manage should be marshalled.

Table of Contents

Methods

buildMarshalMap()  : array<string|int, mixed>
Build a set of properties that should be included in the marshalling process.

Methods

buildMarshalMap()

Build a set of properties that should be included in the marshalling process.

public buildMarshalMap(Marshaller $marshaller, array<string|int, mixed> $map, array<string, mixed> $options) : array<string|int, mixed>
Parameters
$marshaller : Marshaller

The marhshaller of the table the behavior is attached to.

$map : array<string|int, mixed>

The property map being built.

$options : array<string, mixed>

The options array used in the marshalling call.

Return values
array<string|int, mixed>

A map of [property => callable] of additional properties to marshal.


        
On this page

Search results