Overview

Namespaces

  • Deimos
    • Flow
      • Extension
        • TBlock
        • TFor
        • TForeach
        • TIF
        • TLiteral
        • TPHP
        • TSimple
        • TTry
        • TWhile
      • Traits
  • PHP

Classes

  • Block
  • Configure
  • DefaultConfig
  • DefaultContainer
  • Flow
  • FlowForeach
  • FlowFunction
  • ForeachState
  • Lexer
  • LexerConst
  • Tokenizer
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Class ForeachState

Namespace: Deimos\Flow
Located at Flow/ForeachState.php
Methods summary
public
# __construct( array & $storage )

State constructor.

State constructor.

Parameters

$storage
public mixed
# __get( $name )

Parameters

$name

Returns

mixed
public
# __set( $name, $value )

Parameters

$name
$value

Throws

BadFunctionCallException
public boolean
# __isset( $name )

Parameters

$name

Returns

boolean
public boolean
# odd( )

Returns

boolean
public boolean
# even( )

Returns

boolean
public boolean
# isFirst( )

Returns

boolean
public boolean
# first( )

Returns

boolean
public boolean
# isLast( )

Returns

boolean
public boolean
# last( )

Returns

boolean
public integer
# iteration( )

Returns

integer
public string|integer
# key( )

Returns

string|integer
public mixed
# value( )

Returns

mixed
public string|integer
# firstKey( )

Returns

string|integer
public string|integer
# lastKey( )

Returns

string|integer
public mixed
# firstValue( )

Returns

mixed
public mixed
# lastValue( )

Returns

mixed
public integer
# total( )

Returns

integer
public
# __invoke( $key )

Parameters

$key
Properties summary
protected string $_iteration
#
protected string $_key
#
protected string $_firstKey
#
protected string $_lastKey
#
protected string $_total
#
protected array $storage
#
API documentation generated by ApiGen