Overview

Namespaces

  • Baguette
    • Mastodon
      • Config
      • Entity
      • Grant
      • Service
  • GuzzleHttp
    • Cookie
    • Exception
    • Handler
    • Promise
  • Psr
    • Http
      • Message
  • Teto
    • Object

Classes

  • Helper
  • ObjectArray
  • TypeDefinition

Interfaces

  • ToArrayInterface

Traits

  • MethodAlias
  • PrivateGetter
  • PrivateStrictGetter
  • PropertyLikeMethod
  • ReadOnly
  • TypeAssert
  • TypedProperty
  • Overview
  • Namespace
  • Class

Class TypeDefinition

Type Definition syntax

Final
Namespace: Teto\Object
Copyright: 2016 Baguette HQ
License: http://www.apache.org/licenses/LICENSE-2.0
Author: USAMI Kenta tadsan@zonu.me
Located at Object/TypeDefinition.php
Methods summary
public
# __construct( )
public static Teto\Object\TypeDefinition
# parse( string $def )

Parameters

$def
Type definition

Returns

Teto\Object\TypeDefinition
public
# __get( $name )

Throws

OutOfRangeException
Constants summary
string RE_PROPERTY
# '/^(\??)([^\s\[\]?]+)((?:\[(\d*)\])?)$/'
Magic properties summary
public read-only string $expected
public read-only boolean $is_nullable
public read-only boolean $is_array
public read-only integer|null $len
ξ ^ω^)ξ Baguette PHP Mastodon API Client / SDK API documentation generated by ApiGen