Overview

Namespaces

  • Evenement
  • None
  • Peridot
    • Console
    • Core
    • Reporter
    • Runner
    • Scope
    • Test
  • Symfony
    • Component
      • Console
        • Command
        • Descriptor
        • Event
        • Exception
        • Formatter
        • Helper
        • Input
        • Logger
        • Output
        • Question
        • Style
        • Tester
        • Tests
          • Command
          • Descriptor
          • Fixtures
          • Formatter
          • Helper
          • Input
          • Logger
          • Output
          • Style
          • Tester

Classes

  • Scope

Traits

  • ScopeTrait
  • Overview
  • Namespace
  • Class

Class Scope

Property bag for scoping "instance variables" and mixing in behavior and state

Direct known subclasses

Peridot\Core\Scope
Namespace: Peridot\Scope
Package: Peridot\Core
Located at Scope.php
Methods summary
public
# peridotAddChildScope( Peridot\Scope\Scope $scope )

Parameters

$scope
public Peridot\Scope\Scope
# peridotGetParentScope( )

Returns

Peridot\Scope\Scope
public
# peridotSetParentScope( Peridot\Scope\Scope $peridotParentScope )

Parameters

$peridotParentScope
public SplObjectStorage
# peridotGetChildScopes( )

Returns

SplObjectStorage
public callable
# peridotBindTo( callable $callable )

Bind a callable to the scope.

Bind a callable to the scope.

Parameters

$callable

Returns

callable
public mixed
# __call( $name, $arguments )

Parameters

$name
$arguments

Returns

mixed

Throw

BadMethodCallException
public mixed &
# __get( $name )

Lookup properties on child scopes.

Lookup properties on child scopes.

Parameters

$name

Returns

mixed

Throws

DomainException
protected array
# peridotScanChildren( Peridot\Scope\Scope $scope, callable $fn, array & $accumulator = [] )

Scan child scopes and execute a function against each one passing an accumulator reference along.

Scan child scopes and execute a function against each one passing an accumulator reference along.

Parameters

$scope
$fn
$accumulator

Returns

array
Properties summary
protected SplObjectStorage $peridotChildScopes
#
protected Peridot\Scope\Scope $peridotParentScope
#
Peridot API documentation generated by ApiGen