for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
/**
* Created by Vitaly Iegorov <[email protected]>.
* on 07.04.17 at 09:08
*/
namespace samsonframework\stringconditiontree\string;
use Countable;
use Iterator;
* Class IterableStructure
*
* @author Vitaly Egorov <[email protected]>
class IterableStructure implements Iterator, Countable
{
/** @var AbstractCG[] */
public $groups = [];
* @inheritdoc
public function current()
return current($this->groups);
}
public function next()
next($this->groups);
public function key()
return key($this->groups);
public function valid()
$key = key($this->groups);
return ($key !== null && $key !== false);
public function rewind()
reset($this->groups);
public function count()
return count($this->groups);