Documentation

UpdateTidyTrait uses trait:short

This is functional the same as {@see UpdateTrait} only it uses the `getProperties()` helper to determine which fields belong to the class.

To raise errors on unknown fields UpdateStrictTrait.

Tags
mixin

Table of Contents

Methods

getProperties()  : array<string|int, string>
Get a list of properties for this object.
getPropertyDefaults()  : array<string|int, mixed>
Get a list of default properties for this object.
getPropertyTypes()  : array<string|int, string>
Get a list of properties, with respective types (if available).
update()  : void

Methods

getProperties()

Get a list of properties for this object.

public static getProperties() : array<string|int, string>

By default this is a set of non-static public properties, but can be overridden by child classes that might want to show or hide other data.

This is used by:

Return values
array<string|int, string>

getPropertyDefaults()

Get a list of default properties for this object.

public static getPropertyDefaults() : array<string|int, mixed>

By default this is all non-static public properties with compile time default values. That is, defined in the class definition.

Return values
array<string|int, mixed> —

[ name => value ]

getPropertyTypes()

Get a list of properties, with respective types (if available).

public static getPropertyTypes() : array<string|int, string>

Object properties can have strict types. If not typed, all properties will be mixed.

Return values
array<string|int, string> —

[ name => type ]

update()

public update(iterable<string|int, mixed> $config) : void
Parameters
$config : iterable<string|int, mixed>
On this page

Search results