original_string: public function getByType($class)
      {
          $class = array_map('strtolower', (array)$class);
  
          $out = array_filter($this->_items, function ($assoc) use ($class) {
              list(, $name) = namespaceSplit(get_class($assoc));
  
              return in_array(strtolower($name), $class, true);
          });
  
          return array_values($out);
      }
code: public function getByType($class)
      {
          $class = array_map('strtolower', (array)$class);
  
          $out = array_filter($this->_items, function ($assoc) use ($class) {
              list(, $name) = namespaceSplit(get_class($assoc));
  
              return in_array(strtolower($name), $class, true);
          });
  
          return array_values($out);
      }
code_tokens: public function getByType ( $ class ) { $ class = array_map ( 'strtolower' , ( array ) $ class ) ; $ out = array_filter ( $ this -> _items , function ( $ assoc ) use ( $ class ) { list ( , $ name ) = namespaceSplit ( get_class ( $ assoc ) ) ; return in_array ( strtolower ( $ name ) , $ class , true ) ; } ) ; return array_values ( $ out ) ; }
docstring: Get an array of associations matching a specific type.
  
  @param string|array $class The type of associations you want.
  For example 'BelongsTo' or array like ['BelongsTo', 'HasOne']
  @return array An array of Association objects.
  @since 3.5.3
docstring_tokens: Get an array of associations matching a specific type .