src/bbn/parsers/doc.php
private function get_components(string $memberof = ''){
    $res = [];
    if ( $components = $this->get('component', $memberof) ){
      foreach ( $components as $comp ){
        if ( !empty($comp['name']) ){
          $res[] = array_merge($comp, $this->get_vue($comp['name']));
        }
      }
    }
    return $res;
  }
private function get_components(string $memberof = ''){
    $res = [];
    if ( $components = $this->get('component', $memberof) ){
      foreach ( $components as $comp ){
        if ( !empty($comp['name']) ){
          $res[] = array_merge($comp, $this->get_vue($comp['name']));
        }
      }
    }
    return $res;
  }
private function get_components ( string $ memberof = '' ) { $ res = [ ] ; if ( $ components = $ this -> get ( 'component' , $ memberof ) ) { foreach ( $ components as $ comp ) { if ( ! empty ( $ comp [ 'name' ] ) ) { $ res [ ] = array_merge ( $ comp , $ this -> get_vue ( $ comp [ 'name' ] ) ) ; } } } return $ res ; }
Gets an array of 'component' tags

@param string $memberof The parent tag name
@return array|false
Gets an array of component tags