original_string: public static function makeCollection($rows)
      {
          $collection = [];
          foreach ($rows as $row)
          {
              $obj = new static;
              $collection[] = $obj->setAttributes(get_object_vars($row));
          }
          return $collection;
      }
code: public static function makeCollection($rows)
      {
          $collection = [];
          foreach ($rows as $row)
          {
              $obj = new static;
              $collection[] = $obj->setAttributes(get_object_vars($row));
          }
          return $collection;
      }
code_tokens: public static function makeCollection ( $ rows ) { $ collection = [ ] ; foreach ( $ rows as $ row ) { $ obj = new static ; $ collection [ ] = $ obj -> setAttributes ( get_object_vars ( $ row ) ) ; } return $ collection ; }
docstring: Mace collection of objects
  
  @param $rows
  @return array
docstring_tokens: Mace collection of objects