original_string: public static function create(Connection $connection, $amount = 0)
      {
          $entities = [];
          for ($i = 0; $i < (int) $amount; $i++) {
              $entities[] = new static($connection);
          }
  
          return static::newCollection($entities);
      }
code: public static function create(Connection $connection, $amount = 0)
      {
          $entities = [];
          for ($i = 0; $i < (int) $amount; $i++) {
              $entities[] = new static($connection);
          }
  
          return static::newCollection($entities);
      }
code_tokens: public static function create ( Connection $ connection , $ amount = 0 ) { $ entities = [ ] ; for ( $ i = 0 ; $ i < ( int ) $ amount ; $ i ++ ) { $ entities [ ] = new static ( $ connection ) ; } return static :: newCollection ( $ entities ) ; }
docstring: Create a new collection with an amount of empty entities.
  
  @param Connection $connection A connection instance
  @param int        $amount     The amount of new Entities to create
docstring_tokens: Create a new collection with an amount of empty entities .