/** * Overwritten implementation of count() which is able to determine the count of contained lists * as a whole. * * @param bool $countChildren Should we count the entries of the contained lists? * * @return int */ public function count($countChildren = false) { // If we do not want the children to be counted we can use the parent's count() method if ($countChildren !== true) { return parent::count(); } $counter = 0; foreach ($this->container as $item) { $counter += $item->count(); } return $counter; }
/** * Default constructor */ public function __construct() { parent::__construct(); $this->itemType = 'AppserverIo\\Doppelgaenger\\Interfaces\\AssertionInterface'; }
/** * Default constructor */ public function __construct() { parent::__construct(); $this->itemType = 'AppserverIo\\Doppelgaenger\\Entities\\Definitions\\FunctionDefinition'; $this->defaultOffset = 'name'; }
/** * Default constructor */ public function __construct() { parent::__construct(); $this->itemType = 'AppserverIo\\Doppelgaenger\\Entities\\Definitions\\ParameterDefinition'; }
/** * Default constructor */ public function __construct() { parent::__construct(); $this->itemType = 'AppserverIo\\Doppelgaenger\\Entities\\Advice'; }
/** * Default constructor */ public function __construct() { parent::__construct(); $this->itemType = 'AppserverIo\\Doppelgaenger\\Entities\\PointcutExpression'; }
/** * Default constructor */ public function __construct() { parent::__construct(); $this->itemType = 'AppserverIo\\Doppelgaenger\\Interfaces\\StructureDefinitionInterface'; $this->defaultOffset = 'name'; }
/** * Default constructor * * @param string $itemType Qualified name of the type the expected entries will have * @param string $defaultOffset The name of the added entry's property whose value will be used as offset */ public function __construct($itemType, $defaultOffset = '') { parent::__construct(); $this->itemType = $itemType; $this->defaultOffset = $defaultOffset; }
public function __construct($type, IStack &$stack) { parent::__construct($type, $stack); }
public function __construct($type, IQueue &$queue) { parent::__construct($type, $queue); }