original_string: public function type($type) {
          if (!array_key_exists($type, $this->orderedcollection)) {
              $this->orderedcollection[$type] = array();
          }
          return $this->orderedcollection[$type];
      }
code: public function type($type) {
          if (!array_key_exists($type, $this->orderedcollection)) {
              $this->orderedcollection[$type] = array();
          }
          return $this->orderedcollection[$type];
      }
code_tokens: public function type ( $ type ) { if ( ! array_key_exists ( $ type , $ this -> orderedcollection ) ) { $ this -> orderedcollection [ $ type ] = array ( ) ; } return $ this -> orderedcollection [ $ type ] ; }
docstring: Fetches all nodes of a given type from this collection
  
  @param string|int $type  node type being searched for.
  @return array ordered collection
docstring_tokens: Fetches all nodes of a given type from this collection