PropertyType
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
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