Overview
  • Namespace
  • Class

Namespaces

  • CupOfTea
    • Chain
      • Contracts
      • Exceptions

Classes

  • Chain
  • Results

Class Results

CupOfTea\Chain\Results implements CupOfTea\Chain\Contracts\ResultAccess
Namespace: CupOfTea\Chain
Located at Results.php

Methods summary

public
# addResult( string $result, mixed $value )

Add a result to the Results object.

Add a result to the Results object.

Parameters

$result
Name of the result
$value
Value of the result
public mixed
# getResult( string $result )

Parameters

$result
Name of the result

Returns

mixed
value of the result

Inheritdoc

Implementation of

CupOfTea\Chain\Contracts\ResultAccess::getResult()
public Array
# getResults( )

Returns

Array
The results

Inheritdoc

Implementation of

CupOfTea\Chain\Contracts\ResultAccess::getResults()
public CupOfTea\Chain\Results
# done( )

Close result set, preventing additional results to be added.

Close result set, preventing additional results to be added.

Returns

CupOfTea\Chain\Results
Results object
public
# toArray( )

Inheritdoc

Implementation of

CupOfTea\Chain\Contracts\ResultAccess::toArray()
public mixed
# __get( string $result )

Return the result with the specified name.

Return the result with the specified name.

Parameters

$result
Name of the result

Returns

mixed
value of the result
public boolean
# __isset( string $result )

Wether or not a result for the name exists.

Wether or not a result for the name exists.

Parameters

$result
Name of the result

Returns

boolean
Wether or not a result for the name exists

Properties summary

protected boolean $open

Wether or not Results can be added to the Results object

Wether or not Results can be added to the Results object

Protected

bool
# true
protected array $results

The Results contained in the Results object

The Results contained in the Results object

Protected

Array
# []
API documentation generated by ApiGen