Documentation

IObjectPropertyBuilder extends IPropertyBuilder

Adds the class/interface property to the builder used for properties that hold object values.

Make and use as many arguments as needed.

Table of Contents

setClass() Sets the class name used for certain data types PropertyBuilder
getClass() When the property type is ENUM or SET, a class name must be declared. string
getCreateClassClosure() Retrieve an optional closure that returns a new instance of the object defined by the class property. Closure|null
getPrefix() string
setPrefix() void
getTag() string
setTag() void
getId() Retrieve the optionally set unique identifier for this property. int
getCaption() Get the property caption/label string
setCaption() Sets the property caption/label void
getType() Retrieve the property type IPropertyType
getFlags() Retrieve the set of flags for this property IPropertyFlags
setFlags() void
getName() Retrieve the property name string
setName() void
setDefaultValue() Sets the default property value PropertyBuilder
getDefaultValue() Retrieve the default value for some property mixed
addBehavior() Sets callbacks to modify the property behavior void
getBehavior() Retrieve callbacks for modifying property behavior \buffalokiwi\magicgraph\property\IPropertyBehavior[]
setConfig() Sets some config array if needed. PropertyBuilder
getConfig() Retrieve some arbitrary config array array

Methods

getClass()

When the property type is ENUM or SET, a class name must be declared.

public getClass( ) : string

The defined class manages the data within the column.

Return values
string

class name

getCreateClassClosure()

Retrieve an optional closure that returns a new instance of the object defined by the class property.

public getCreateClassClosure( ) : Closure|null

The closure MUST return the defined type.

Return values
Closure|null

Callback

getId()

Retrieve the optionally set unique identifier for this property.

public getId( ) : int

This may be zero if unassigned.

Return values
int

optional id

getCaption()

Get the property caption/label

public getCaption( ) : string
Return values
string

caption

setCaption()

Sets the property caption/label

public setCaption( $caption : string ) : void
Parameters
$caption : string

caption

getName()

Retrieve the property name

public getName( ) : string
Return values
string

name

getDefaultValue()

Retrieve the default value for some property

public getDefaultValue( ) : mixed
Return values
mixed

Default value

getBehavior()

Retrieve callbacks for modifying property behavior

public getBehavior( ) : \buffalokiwi\magicgraph\property\IPropertyBehavior[]
Return values
\buffalokiwi\magicgraph\property\IPropertyBehavior[]

callbacks

getConfig()

Retrieve some arbitrary config array

public getConfig( ) : array
Return values
array

config

Search results