original_string: public function parse($source)
      {
          $resolver = new RefResolver();
  
          if ($this->connection !== null) {
              $resolver->addResolver('schema', new Resolver($this->connection));
          }
  
          $parser = new JsonSchema(null, $resolver);
          $schema = $parser->parse($source);
  
          return Service\Schema::serializeCache($schema);
      }
code: public function parse($source)
      {
          $resolver = new RefResolver();
  
          if ($this->connection !== null) {
              $resolver->addResolver('schema', new Resolver($this->connection));
          }
  
          $parser = new JsonSchema(null, $resolver);
          $schema = $parser->parse($source);
  
          return Service\Schema::serializeCache($schema);
      }
code_tokens: public function parse ( $ source ) { $ resolver = new RefResolver ( ) ; if ( $ this -> connection !== null ) { $ resolver -> addResolver ( 'schema' , new Resolver ( $ this -> connection ) ) ; } $ parser = new JsonSchema ( null , $ resolver ) ; $ schema = $ parser -> parse ( $ source ) ; return Service \ Schema :: serializeCache ( $ schema ) ; }
docstring: Parses and resolves the json schema source and returns the object
  presentation of the schema
  
  @param string $source
  @return string
docstring_tokens: Parses and resolves the json schema source and returns the object presentation of the schema