Abstract class provides default implementation for types.
Methods do return null or false values as default.
Source for this file: /Reflection/src/types/abstract_type.php
Version: | //autogen// |
Child Class | Description |
---|---|
ezcReflectionMixedType | Representation for the mixed type |
ezcReflectionPrimitiveType | Representation for all primitive types like string, integer, float and boolean |
protected string |
$typeName
= null
|
public ezcReflectionAbstractType |
__construct(
$typeName
)
|
public string |
getTypeName(
)
|
public string |
getXmlName(
[ $usePrefix
= true] )
Returns name of the correspondent XML Schema datatype |
public DOMElement |
getXmlSchema(
$dom
)
|
public boolean |
isArray(
)
|
public boolean |
isMap(
)
|
public boolean |
isObject(
)
|
public boolean |
isPrimitive(
)
|
public boolean |
isScalarType(
)
Returns whether this type is one of integer, float, string, or boolean. |
public String |
__toString(
)
Returns a string representation. |
Name | Type | Description |
---|---|---|
$typeName |
string |
Method | Description |
---|---|
ezcReflectionArrayType::__construct() |
|
ezcReflectionObjectType::__construct() |
Constructs a new ezcReflectionObjectType object. |
Method | Description |
---|---|
ezcReflectionType::getTypeName() |
Return the name of this type as string |
Method | Description |
---|---|
ezcReflectionMixedType::getTypeName() |
Return the name of this type as string |
ezcReflectionArrayType::getTypeName() |
Returns the canonical name for this array, which can be used in type annotations. |
Returns name of the correspondent XML Schema datatype
The prefix `xsd' is comonly used to refer to the XML Schema namespace.
Name | Type | Description |
---|---|---|
$usePrefix |
boolean | augments common prefix `xsd:' to the name |
Method | Description |
---|---|
ezcReflectionType::getXmlName() |
Returns the name to be used in a xml schema for this type. |
Method | Description |
---|---|
ezcReflectionArrayType::getXmlName() |
Returns XML Schema name of the complexType for the array |
ezcReflectionObjectType::getXmlName() |
Returns XML Schema name of the complexType for the class |
Name | Type | Description |
---|---|---|
$dom |
DOMDocument |
Method | Description |
---|---|
ezcReflectionType::getXmlSchema() |
Method | Description |
---|---|
ezcReflectionArrayType::getXmlSchema() |
Returns an <xsd:complexType/> |
ezcReflectionObjectType::getXmlSchema() |
Returns an <xsd:complexType/> |
Method | Description |
---|---|
ezcReflectionType::isArray() |
Method | Description |
---|---|
ezcReflectionArrayType::isArray() |
Method | Description |
---|---|
ezcReflectionType::isMap() |
Method | Description |
---|---|
ezcReflectionArrayType::isMap() |
Returns wether this array is documented as 'array(mixed=>mixed)' or simply 'array'. |
Method | Description |
---|---|
ezcReflectionType::isObject() |
Method | Description |
---|---|
ezcReflectionObjectType::isObject() |
Method | Description |
---|---|
ezcReflectionType::isPrimitive() |
Method | Description |
---|---|
ezcReflectionPrimitiveType::isPrimitive() |
Returns whether this type is one of integer, float, string, or boolean.
Types array, object, resource, NULL, mixed, number, and callback are not scalar.
Method | Description |
---|---|
ezcReflectionType::isScalarType() |
Returns whether this type is one of integer, float, string, or boolean. |
Method | Description |
---|---|
ezcReflectionPrimitiveType::isScalarType() |
Returns whether this type is one of integer, float, string, or boolean. |
Returns a string representation.
Method | Description |
---|---|
ezcReflectionType::__toString() |
Returns a string representation. |