src/SearchElastic/SearchAbstract/SearchAbstract.php
protected function validate($query)
    {
        if ($this->client->getIndex() == null) {
            throw new SearchException("Index cannot be null");
        }
        if ($this->client->getType() == null) {
            throw new SearchException("Type cannot be null");
        }
        if ($query == null) {
            throw new SearchException("Query can't be null");
        }
    }
protected function validate($query)
    {
        if ($this->client->getIndex() == null) {
            throw new SearchException("Index cannot be null");
        }
        if ($this->client->getType() == null) {
            throw new SearchException("Type cannot be null");
        }
        if ($query == null) {
            throw new SearchException("Query can't be null");
        }
    }
protected function validate ( $ query ) { if ( $ this -> client -> getIndex ( ) == null ) { throw new SearchException ( "Index cannot be null" ) ; } if ( $ this -> client -> getType ( ) == null ) { throw new SearchException ( "Type cannot be null" ) ; } if ( $ query == null ) { throw new SearchException ( "Query can't be null" ) ; } }
Function to validate Search
@param  string  $query
@return void
Function to validate Search