original_string: public function searchByNameAndType($name = null, $type = null)
      {
          $searchResult = $this->getRequest()->request(
              'POST',
              $this->getRequestUrl('models/searches'),
              [
                  'model_query' => [
                      'name' => $name,
                      'type' => $type,
                  ],
  
              ]
          );
  
          return $this->getModelsFromResult($searchResult);
      }
code: public function searchByNameAndType($name = null, $type = null)
      {
          $searchResult = $this->getRequest()->request(
              'POST',
              $this->getRequestUrl('models/searches'),
              [
                  'model_query' => [
                      'name' => $name,
                      'type' => $type,
                  ],
  
              ]
          );
  
          return $this->getModelsFromResult($searchResult);
      }
code_tokens: public function searchByNameAndType ( $ name = null , $ type = null ) { $ searchResult = $ this -> getRequest ( ) -> request ( 'POST' , $ this -> getRequestUrl ( 'models/searches' ) , [ 'model_query' => [ 'name' => $ name , 'type' => $ type , ] , ] ) ; return $ this -> getModelsFromResult ( $ searchResult ) ; }
docstring: Searches Models by It's name and type
  
  @param string $name
  @param string $type
  
  @return Model[] array
docstring_tokens: Searches Models by It s name and type