original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Populate collection from array
  
  @param  array $array
  @return static
docstring_tokens: Populate collection from array