public function finder($finder = null)
    {
        deprecationWarning(
            get_called_class() . '::finder() is deprecated. ' .
            'Use setFinder()/getFinder() instead.'
        );
        if ($finder !== null) {
            $this->setFinder($finder);
        }

        return $this->getFinder();
    }