You are here

public function Parameters::__construct in Zircon Profile 8

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

Constructor

Enforces that we have an array, and enforces parameter access to array elements.

Parameters

array $values:

Overrides ParametersInterface::__construct

File

vendor/zendframework/zend-stdlib/src/Parameters.php, line 24

Class

Parameters

Namespace

Zend\Stdlib

Code

public function __construct(array $values = null) {
  if (null === $values) {
    $values = [];
  }
  parent::__construct($values, ArrayObject::ARRAY_AS_PROPS);
}