private function tag_get_type(string $text){
    if (
      ($this->mode === 'js') ||
      ($this->mode === 'vue')
    ){
      preg_match('/(?:\{)(.+)(?:\})/', $text, $type, PREG_OFFSET_CAPTURE);
    }
    else if ( $this->mode === 'php' ){
      preg_match('/(?:\@[a-z]+\s{1})(.+)(?:\s{1}\$)/', $text, $type, PREG_OFFSET_CAPTURE);
      $type[0] = $type[1];
    }
    return $type;
  }
private function tag_get_type(string $text){
    if (
      ($this->mode === 'js') ||
      ($this->mode === 'vue')
    ){
      preg_match('/(?:\{)(.+)(?:\})/', $text, $type, PREG_OFFSET_CAPTURE);
    }
    else if ( $this->mode === 'php' ){
      preg_match('/(?:\@[a-z]+\s{1})(.+)(?:\s{1}\$)/', $text, $type, PREG_OFFSET_CAPTURE);
      $type[0] = $type[1];
    }
    return $type;
  }
private function tag_get_type ( string $ text ) { if ( ( $ this -> mode === 'js' ) || ( $ this -> mode === 'vue' ) ) { preg_match ( '/(?:\{)(.+)(?:\})/' , $ text , $ type , PREG_OFFSET_CAPTURE ) ; } else if ( $ this -> mode === 'php' ) { preg_match ( '/(?:\@[a-z]+\s{1})(.+)(?:\s{1}\$)/' , $ text , $ type , PREG_OFFSET_CAPTURE ) ; $ type [ 0 ] = $ type [ 1 ] ; } return $ type ; }
Gets tag 'type'

@param string $text The tag text
@return array
Gets tag type