final class PropertyType (View source)

internal  
 

The property type value object as declared in a NodeType

Only for use on the write side to enforce constraints

Constants

TYPE_BOOL

TYPE_INT

TYPE_FLOAT

TYPE_STRING

TYPE_ARRAY

TYPE_DATE

PATTERN_ARRAY_OF

Methods

static PropertyType
fromNodeTypeDeclaration(string $declaration, PropertyName $propertyName, NodeTypeName $nodeTypeName)

No description

static PropertyType
bool(bool $isNullable)

No description

static PropertyType
int(bool $isNullable)

No description

static PropertyType
string(bool $isNullable)

No description

static PropertyType
float(bool $isNullable)

No description

static PropertyType
date(bool $isNullable)

No description

bool
isBool()

No description

bool
isInt()

No description

bool
isFloat()

No description

bool
isString()

No description

bool
isArray()

No description

bool
isArrayOf()

No description

bool
isDate()

No description

string
getValue()

No description

bool
isNullable()

No description

string
getArrayOfClassName()

No description

bool
isMatchedBy(mixed $propertyValue)

No description

string
getSerializationType()

No description

string
__toString()

No description

Details

static PropertyType fromNodeTypeDeclaration(string $declaration, PropertyName $propertyName, NodeTypeName $nodeTypeName)

No description

Parameters

string $declaration
PropertyName $propertyName
NodeTypeName $nodeTypeName

Return Value

PropertyType

Exceptions

PropertyTypeIsInvalid

static PropertyType bool(bool $isNullable)

No description

Parameters

bool $isNullable

Return Value

PropertyType

static PropertyType int(bool $isNullable)

No description

Parameters

bool $isNullable

Return Value

PropertyType

static PropertyType string(bool $isNullable)

No description

Parameters

bool $isNullable

Return Value

PropertyType

static PropertyType float(bool $isNullable)

No description

Parameters

bool $isNullable

Return Value

PropertyType

static PropertyType date(bool $isNullable)

No description

Parameters

bool $isNullable

Return Value

PropertyType

bool isBool()

No description

Return Value

bool

bool isInt()

No description

Return Value

bool

bool isFloat()

No description

Return Value

bool

bool isString()

No description

Return Value

bool

bool isArray()

No description

Return Value

bool

bool isArrayOf()

No description

Return Value

bool

bool isDate()

No description

Return Value

bool

string getValue()

No description

Return Value

string

bool isNullable()

No description

Return Value

bool

string getArrayOfClassName()

No description

Return Value

string

bool isMatchedBy(mixed $propertyValue)

No description

Parameters

mixed $propertyValue

Return Value

bool

string getSerializationType()

No description

Return Value

string

string __toString()

No description

Return Value

string