public function Collection::__construct

Same name in this branch
  1. 8.x drupal/core/vendor/guzzle/common/Guzzle/Common/Collection.php \Guzzle\Common\Collection::__construct()
  2. 8.x drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Constraints/Collection.php \Symfony\Component\Validator\Constraints\Collection::__construct()

Constructor

Parameters

array $data Associative array of data to set:

File

drupal/core/vendor/guzzle/common/Guzzle/Common/Collection.php, line 22

Class

Collection
Key value pair collection object

Namespace

Guzzle\Common

Code

public function __construct(array $data = null) {
  $this->data = $data ?: array();
}