# Type

Chevere\Components\Type\Type

view source (opens new window)

# Implements

# Constants

# BOOLEAN

Type string

'boolean'

# INTEGER

Type string

'integer'

# FLOAT

Type string

'float'

# STRING

Type string

'string'

# ARRAY

Type string

'array'

# OBJECT

Type string

'object'

# CALLABLE

Type string

'callable'

# ITERABLE

Type string

'iterable'

# RESOURCE

Type string

'resource'

# NULL

Type string

'null'

# PRIMITIVE_CLASS_NAME

Type string

'className'

# PRIMITIVE_INTERFACE_NAME

Type string

'interfaceName'

# TYPE_VALIDATORS

Type array

array (
  'array' => 'is_array',
  'boolean' => 'is_bool',
  'callable' => 'is_callable',
  'float' => 'is_float',
  'integer' => 'is_integer',
  'iterable' => 'is_iterable',
  'null' => 'is_null',
  'object' => 'is_object',
  'resource' => 'is_resource',
  'string' => 'is_string',
  'className' => 'is_object',
  'interfaceName' => 'is_object',
)

# Methods

# __construct

Parameters

  • type: string

# validator

Return

callable


# primitive

Return

string


# typeHinting

Return

string


# validate

Parameters

  • var:

Return

bool


# isScalar

Return

bool


Last Updated: 8/31/2021, 8:53:19 PM