protected function getHydrationElements($elements)
    {
        $elements = ($elements ?: $this->config->get('hydrate.elements'));

        if (is_string($elements) || is_numeric($elements)) {
            return [$elements => true];
        }

        return $this->checkHydrationElements($elements);
    }
protected function getHydrationElements($elements)
    {
        $elements = ($elements ?: $this->config->get('hydrate.elements'));

        if (is_string($elements) || is_numeric($elements)) {
            return [$elements => true];
        }

        return $this->checkHydrationElements($elements);
    }
protected function getHydrationElements ( $ elements ) { $ elements = ( $ elements ? : $ this -> config -> get ( 'hydrate.elements' ) ) ; if ( is_string ( $ elements ) || is_numeric ( $ elements ) ) { return [ $ elements => true ] ; } return $ this -> checkHydrationElements ( $ elements ) ; }
Get hydration elements.

@param $elements
@return array|string|mixed
Get hydration elements .