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 ObjectArray

Interface for array compatible object

Teto\Object\ObjectArray implements ArrayAccess, Countable, IteratorAggregate, Teto\Object\ToArrayInterface
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/ObjectArray.php
Methods summary
public
# __construct( )
public static Teto\Object\ObjectArray
# fromArray( Teto\Object\ObjectArray|object[] $objects )

Parameters

$objects

Returns

Teto\Object\ObjectArray

Throws

InvalidArgumentException
public array
# toArray( )

Returns

array

Implementation of

Teto\Object\ToArrayInterface::toArray()
public static
# toArrayRec( mixed $object, integer $rec = 5 )

Convert elements to recursive array

Convert elements to recursive array

Parameters

$object
$rec
ネストの深さ
public
# getObjects( )
public integer
# count( )

Returns

integer

Implementation of

Countable::count()
public boolean
# offsetExists( mixed $offset )

Parameters

$offset
offset

Returns

boolean

Implementation of

ArrayAccess::offsetExists()
public mixed
# offsetGet( mixed $offset )

Parameters

$offset
offset

Returns

mixed

Throws

OutOfBoundsException

Implementation of

ArrayAccess::offsetGet()
public
# offsetSet( mixed $offset, mixed $value )

Parameters

$offset
offset
$value
value

Throws

OutOfBoundsException

Implementation of

ArrayAccess::offsetSet()
public
# offsetUnset( mixed $offset )

Parameters

$offset
offset

Implementation of

ArrayAccess::offsetUnset()
public ArrayIterator
# getIterator( )

Returns

ArrayIterator

Implementation of

IteratorAggregate::getIterator()
ξ ^ω^)ξ Baguette PHP Mastodon API Client / SDK API documentation generated by ApiGen