Overview

Namespaces

  • chippyash
    • Type
      • Exceptions
      • Interfaces
      • Number
        • Complex
        • Rational
      • String

Classes

  • AbstractMultiValueType
  • AbstractType
  • AbstractTypeFactory
  • BoolType
  • TypeFactory
  • Overview
  • Namespace
  • Class
  • Tree

Class AbstractType

An abstract PHP type as an object

chippyash\Type\AbstractType implements chippyash\Type\Interfaces\TypeInterface

Direct known subclasses

chippyash\Type\AbstractMultiValueType, chippyash\Type\BoolType, chippyash\Type\Number\FloatType, chippyash\Type\Number\IntType, chippyash\Type\String\DigitType, chippyash\Type\String\StringType

Indirect known subclasses

chippyash\Type\Number\Complex\AbstractComplexType, chippyash\Type\Number\Complex\ComplexType, chippyash\Type\Number\Complex\GMPComplexType, chippyash\Type\Number\GMPIntType, chippyash\Type\Number\NaturalIntType, chippyash\Type\Number\Rational\AbstractRationalType, chippyash\Type\Number\Rational\GMPRationalType, chippyash\Type\Number\Rational\RationalType, chippyash\Type\Number\WholeIntType
Abstract
Namespace: chippyash\Type
Located at AbstractType.php
Methods summary
public
# __construct( mixed $value )

Constructor

Constructor

Parameters

$value
public chippyash\Type\AbstractType
# set( mixed $value )

Set the object value. Forces type

Set the object value. Forces type

Parameters

$value

Returns

chippyash\Type\AbstractType
Fluent Interface

See

typeOf

Implementation of

chippyash\Type\Interfaces\TypeInterface::set()
public mixed
# get( )

Get the value of the object typed properly

Get the value of the object typed properly

Returns

mixed
mixed

Implementation of

chippyash\Type\Interfaces\TypeInterface::get()
public mixed
# __invoke( )

Magic invoke method Proxy to get()

Magic invoke method Proxy to get()

Returns

mixed
mixed

See

chippyash\Type\AbstractType::get()

Implementation of

chippyash\Type\Interfaces\TypeInterface::__invoke()
public string
# __toString( )

Magic method - convert to string

Magic method - convert to string

Returns

string
string

Implementation of

chippyash\Type\Interfaces\TypeInterface::__toString()
Chippyash Strong Types API documentation generated by ApiGen 2.8.0