public function entityByResult(string $entity): array
    {
        $result = array_get($this->response, "data.result", '');

        return array_get($this->response, "data.entities.$entity.$result", []);
    }
public function entityByResult(string $entity): array
    {
        $result = array_get($this->response, "data.result", '');

        return array_get($this->response, "data.entities.$entity.$result", []);
    }
public function entityByResult ( string $ entity ) : array { $ result = array_get ( $ this -> response , "data.result" , '' ) ; return array_get ( $ this -> response , "data.entities.$entity.$result" , [ ] ) ; }
Returns an entity by current response result

@param string $entity
@return array
Returns an entity by current response result