public function setCollection($array)
    {
        foreach ($array as $key => $object) {
            $class_name = "HelloSign\\{$this->resource_class}";
            $resource = new $class_name;
            $resource->fromObject($object);

            $this->collection[$key] = $resource;
        }

        return $this;
    }
public function setCollection($array)
    {
        foreach ($array as $key => $object) {
            $class_name = "HelloSign\\{$this->resource_class}";
            $resource = new $class_name;
            $resource->fromObject($object);

            $this->collection[$key] = $resource;
        }

        return $this;
    }
public function setCollection ( $ array ) { foreach ( $ array as $ key => $ object ) { $ class_name = "HelloSign\\{$this->resource_class}" ; $ resource = new $ class_name ; $ resource -> fromObject ( $ object ) ; $ this -> collection [ $ key ] = $ resource ; } return $ this ; }
Populate collection from array

@param  array $array
@return static
Populate collection from array