public function eagerLoaded($value = null)
    {
        if ($value === null) {
            deprecationWarning(
                'Using ' . get_called_class() . '::eagerLoaded() as a getter is deprecated. ' .
                'Use isEagerLoaded() instead.'
            );

            return $this->_eagerLoaded;
        }
        $this->_eagerLoaded = $value;

        return $this;
    }
public function eagerLoaded($value = null)
    {
        if ($value === null) {
            deprecationWarning(
                'Using ' . get_called_class() . '::eagerLoaded() as a getter is deprecated. ' .
                'Use isEagerLoaded() instead.'
            );

            return $this->_eagerLoaded;
        }
        $this->_eagerLoaded = $value;

        return $this;
    }
public function eagerLoaded ( $ value = null ) { if ( $ value === null ) { deprecationWarning ( 'Using ' . get_called_class ( ) . '::eagerLoaded() as a getter is deprecated. ' . 'Use isEagerLoaded() instead.' ) ; return $ this -> _eagerLoaded ; } $ this -> _eagerLoaded = $ value ; return $ this ; }
Sets the query instance to be an eager loaded query. If no argument is
passed, the current configured query `_eagerLoaded` value is returned.

@deprecated 3.5.0 Use isEagerLoaded() for the getter part instead.
@param bool|null $value Whether or not to eager load.
@return $this|bool
Sets the query instance to be an eager loaded query . If no argument is passed the current configured query _eagerLoaded value is returned .