/** * Create serializable data collection from the given array. * * @param array $data the collection of properties * * @throws \InvalidArgumentException an invalid collection was given */ public function __construct($data = array()) { if (is_array($data)) { parent::__construct($data); } elseif ($data instanceof \Gishiki\Algorithms\Collections\CollectionInterface) { $this->data = $data->all(); } }
/** * Constructor */ public function __construct() { parent::__construct('GoogleMaps\\Result'); }