Documentation

StringPropertyBuilder extends BoundedPropertyBuilder implements IStringPropertyBuilder

Adds min/max properties to the builder min defaults to zero and max defaults to PHP_MAX_INT.

Table of Contents

$pattern Value validation pattern string
$min min length/value float
$max Max length / value float
$caption Property caption/label string
$defaultValue Default property value mixed
$flags Flags SPropertyFlags
$type Property Type EPropertyType
$name Property name string
$behavior Property behavior \buffalokiwi\magicgraph\property\IPropertyBehavior[]
$config Some config array if needed. array
$id Optional unique id int
$prefix A prefix that can be used to map something to an IModel instance string
$tag An optional tag string
__construct() Create a new BoundedPropertyBuilder instance mixed
setPattern() Sets the validation pattern to use. PropertyBuilder
getPattern() Retrieve the pattern used to validate the value against. string
__construct() Create a new PropertyBuilder instance mixed
setMin() Sets the minimum value/length PropertyBuilder
getMin() Retrieve the minimum value or length float
setMax() Sets the maximum value/length PropertyBuilder
getMax() Retrieve the maximum value or length float
getId() Retrieve the optionally set unique identifier for this property. int
setId() Sets the optional unique identifier for this property void
getTag() string
setTag() void
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
getPrefix() string
setPrefix() void

Properties

$behavior

Property behavior

private \buffalokiwi\magicgraph\property\IPropertyBehavior[] $behavior = []

$prefix

A prefix that can be used to map something to an IModel instance

private string $prefix = ''

Methods

getPattern()

Retrieve the pattern used to validate the value against.

public getPattern( ) : string
Return values
string

pattern

getId()

Retrieve the optionally set unique identifier for this property.

public getId( ) : int

This may be zero if unassigned.

Return values
int

optional id

setId()

Sets the optional unique identifier for this property

public setId( $id : int ) : void
Parameters
$id : int

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