protected function determineModelReferenceStrategy(Model $model, $strategy = null)
    {
        if (null !== $strategy) {
            $strategy = $this->makeReferenceStrategyInstance($strategy);
        }

        if ( ! $strategy) {
            $strategy = $this->makeReferenceStrategy($model);
        }

        if ( ! $strategy) {
            $strategy = $this->getDefaultReferenceStrategyInstance();
        }

        return $strategy;
    }
protected function determineModelReferenceStrategy(Model $model, $strategy = null)
    {
        if (null !== $strategy) {
            $strategy = $this->makeReferenceStrategyInstance($strategy);
        }

        if ( ! $strategy) {
            $strategy = $this->makeReferenceStrategy($model);
        }

        if ( ! $strategy) {
            $strategy = $this->getDefaultReferenceStrategyInstance();
        }

        return $strategy;
    }
protected function determineModelReferenceStrategy ( Model $ model , $ strategy = null ) { if ( null !== $ strategy ) { $ strategy = $ this -> makeReferenceStrategyInstance ( $ strategy ) ; } if ( ! $ strategy ) { $ strategy = $ this -> makeReferenceStrategy ( $ model ) ; } if ( ! $ strategy ) { $ strategy = $ this -> getDefaultReferenceStrategyInstance ( ) ; } return $ strategy ; }
Returns the strategy reference instance for a model.

@param Model       $model
@param string|null $strategy
@return ReferenceStrategyInterface|null
Returns the strategy reference instance for a model .