public function __construct($name, array $properties = array(), ClassOutline $parentClass = null) { parent::__construct($name); foreach ($properties as $property) { $this->addProperty($property); } if ($parentClass) { $this->setParentClass($parentClass); } }
/** * @param null|string $name name of collection * @param TypeOutlineInterface $elementsType type outline of elements */ public function __construct($name, TypeOutlineInterface $elementsType) { parent::__construct($name); $this->setElementsType($elementsType); }
public function __construct($name, TypeOutlineInterface $keyType, TypeOutlineInterface $valueType) { parent::__construct($name); $this->keyTypeOutline = $keyType; $this->valueTypeOutline = $valueType; }