ICanBoogie/Prototype 3.0.x
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • Prototype

Classes

  • Prototype
  • Prototyped

Traits

  • PrototypeTrait

Class Prototype

Manages the prototype methods that may be bound to classes using ICanBoogie\PrototypeTrait.

ICanBoogie\Prototype implements ArrayAccess, IteratorAggregate
Namespace: ICanBoogie
Located at Prototype.php

Methods summary

public static ICanBoogie\Prototype
# from( string|object $class )

Returns the prototype associated with the specified class or object.

Returns the prototype associated with the specified class or object.

Parameters

$class
Class name or instance.

Returns

ICanBoogie\Prototype
public static
# bind( array $bindings )

Defines prototype methods.

Defines prototype methods.

Parameters

$bindings
public static
# configure( array $bindings )

Defines prototype methods.

Defines prototype methods.

Deprecated

Parameters

$bindings

See

ICanBoogie\Prototype::bind()
public
# offsetSet( string $method, callable $callback )

Adds or replaces the specified method of the prototype.

Adds or replaces the specified method of the prototype.

Parameters

$method
The name of the method.
$callback

Implementation of

ArrayAccess::offsetSet()
public
# offsetUnset( string $method )

Removed the specified method from the prototype.

Removed the specified method from the prototype.

Parameters

$method
The name of the method.

Implementation of

ArrayAccess::offsetUnset()
public boolean
# offsetExists( string $method )

Checks if the prototype defines the specified method.

Checks if the prototype defines the specified method.

Parameters

$method
The name of the method.

Returns

boolean

Implementation of

ArrayAccess::offsetExists()
public callable
# offsetGet( string $method )

Returns the callback associated with the specified method.

Returns the callback associated with the specified method.

Parameters

$method
The name of the method.

Returns

callable

Throws

ICanBoogie\Prototype\MethodNotDefined
if the method is not defined.

Implementation of

ArrayAccess::offsetGet()
public
# getIterator( )

Returns an iterator for the prototype methods.

Returns an iterator for the prototype methods.

Implementation of

IteratorAggregate::getIterator()
ICanBoogie/Prototype 3.0.x API documentation generated by ApiGen