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);
    }
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);
    }
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 ) ; }
Searches Models by It's name and type

@param string $name
@param string $type

@return Model[] array
Searches Models by It s name and type