Elastica\Result::__get PHP Method

__get() public method

Returns null if key does not exist
public __get ( string $key ) : mixed
$key string Key name
return mixed Key value
    public function __get($key)
    {
        $source = $this->getData();
        return array_key_exists($key, $source) ? $source[$key] : null;
    }