original_string: public function setTitle($string, $id, $type = 'main', $sequence = 1){
  		$sequence = max(1, $sequence);
  		// Add title
  		$title = $this->dom->metadata->addChild('title', $this->h($string), Schemas::DC);
  		$title['id'] = $id;
  		// Add title meta
  		$meta = $this->dom->metadata->addChild('meta', $type);
  		$meta['refines'] = '#'.$id;
  		$meta['property'] = 'title-type';
  		// Add sequence
  		$meta = $this->dom->metadata->addChild('meta', $sequence);
  		$meta['refines'] = '#'.$id;
  		$meta['property'] = 'display-seq';
  	}
code: public function setTitle($string, $id, $type = 'main', $sequence = 1){
  		$sequence = max(1, $sequence);
  		// Add title
  		$title = $this->dom->metadata->addChild('title', $this->h($string), Schemas::DC);
  		$title['id'] = $id;
  		// Add title meta
  		$meta = $this->dom->metadata->addChild('meta', $type);
  		$meta['refines'] = '#'.$id;
  		$meta['property'] = 'title-type';
  		// Add sequence
  		$meta = $this->dom->metadata->addChild('meta', $sequence);
  		$meta['refines'] = '#'.$id;
  		$meta['property'] = 'display-seq';
  	}
code_tokens: public function setTitle ( $ string , $ id , $ type = 'main' , $ sequence = 1 ) { $ sequence = max ( 1 , $ sequence ) ; // Add title $ title = $ this -> dom -> metadata -> addChild ( 'title' , $ this -> h ( $ string ) , Schemas :: DC ) ; $ title [ 'id' ] = $ id ; // Add title meta $ meta = $ this -> dom -> metadata -> addChild ( 'meta' , $ type ) ; $ meta [ 'refines' ] = '#' . $ id ; $ meta [ 'property' ] = 'title-type' ; // Add sequence $ meta = $ this -> dom -> metadata -> addChild ( 'meta' , $ sequence ) ; $ meta [ 'refines' ] = '#' . $ id ; $ meta [ 'property' ] = 'display-seq' ; }
docstring: Set title meta
  
  @param string $string
  @param string $id
  @param string $type 1 of 'main', 'subtitle', 'short', 'collection', 'edition' and 'expanded'
  @param int $sequence
docstring_tokens: Set title meta