public function strategy($name = null)
    {
        deprecationWarning(
            get_called_class() . '::strategy() is deprecated. ' .
            'Use setStrategy()/getStrategy() instead.'
        );
        if ($name !== null) {
            $this->setStrategy($name);
        }

        return $this->getStrategy();
    }