Ejemplo n.º 1
0
 /**
  * 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;
 }
Ejemplo n.º 2
0
 /**
  * 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';
 }
Ejemplo n.º 5
0
 /**
  * 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';
 }
Ejemplo n.º 8
0
 /**
  * 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;
 }
Ejemplo n.º 9
0
 public function __construct($type, IStack &$stack)
 {
     parent::__construct($type, $stack);
 }
Ejemplo n.º 10
0
 public function __construct($type, IQueue &$queue)
 {
     parent::__construct($type, $queue);
 }