src/Yandex/Dictionary/DictionaryClient.php
public function lookup($text)
    {
        $url = $this->getLookupUrl($text);
        $response = $this->sendRequest(
            'GET',
            $url,
            [
                'version' => $this->serviceProtocolVersion
            ]
        );
        if ($response->getStatusCode() === 200) {
            $definitions = $this->parseLookupResponse($response);
            return $definitions;
        }
        return false;
    }
public function lookup($text)
    {
        $url = $this->getLookupUrl($text);
        $response = $this->sendRequest(
            'GET',
            $url,
            [
                'version' => $this->serviceProtocolVersion
            ]
        );
        if ($response->getStatusCode() === 200) {
            $definitions = $this->parseLookupResponse($response);
            return $definitions;
        }
        return false;
    }
public function lookup ( $ text ) { $ url = $ this -> getLookupUrl ( $ text ) ; $ response = $ this -> sendRequest ( 'GET' , $ url , [ 'version' => $ this -> serviceProtocolVersion ] ) ; if ( $ response -> getStatusCode ( ) === 200 ) { $ definitions = $ this -> parseLookupResponse ( $ response ) ; return $ definitions ; } return false ; }
Looks up a text in the dictionary

@param string $text

@return array|bool

@throws DictionaryException
@throws ForbiddenException
Looks up a text in the dictionary