You are here

public function ArrayObject::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-stdlib/src/ArrayObject.php \Zend\Stdlib\ArrayObject::__construct()

Constructor

Parameters

array $input:

int $flags:

string $iteratorClass:

File

vendor/zendframework/zend-stdlib/src/ArrayObject.php, line 62

Class

ArrayObject
Custom framework ArrayObject implementation

Namespace

Zend\Stdlib

Code

public function __construct($input = [], $flags = self::STD_PROP_LIST, $iteratorClass = 'ArrayIterator') {
  $this
    ->setFlags($flags);
  $this->storage = $input;
  $this
    ->setIteratorClass($iteratorClass);
  $this->protectedProperties = array_keys(get_object_vars($this));
}