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

Trait TypedProperty

Typed property function for class

Teto\Object\TypedProperty uses Teto\Object\TypeAssert

Direct Known Users

Baguette\Mastodon\Entity\Account, Baguette\Mastodon\Entity\Application, Baguette\Mastodon\Entity\Tag, Baguette\Mastodon\Entity\Attachment, Baguette\Mastodon\Entity\Card, Baguette\Mastodon\Entity\Context, Baguette\Mastodon\Entity\Error_, Baguette\Mastodon\Entity\Instance, Baguette\Mastodon\Entity\Mention, Baguette\Mastodon\Entity\Notification, Baguette\Mastodon\Entity\Status
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/TypedProperty.php
Methods summary
public
# __set( string $name, mixed $value )

Set property (magic method)

Set property (magic method)

Parameters

$name
$value

Throws

OutOfRangeException
If you set to undefined property
InvalidArgumentException
If differed from the defined type
RangeException
If differed from the defined length

See

http://php.net/manual/language.oop5.magic.php
public mixed
# __get( string $name )

Get property (magic method)

Get property (magic method)

Parameters

$name

Returns

mixed

See

http://php.net/manual/language.oop5.magic.php
public boolean
# __isset( string $name )

Parameters

$name

Returns

boolean

See

http://php.net/manual/language.oop5.magic.php
public
# __unset( string $name )

Parameters

$name

See

http://php.net/manual/language.oop5.magic.php
Methods used from Teto\Object\TypeAssert
assertArrayOrObject(), assertInstanceOf(), assertInt(), assertString(), assertValue()
ξ ^ω^)ξ Baguette PHP Mastodon API Client / SDK API documentation generated by ApiGen