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();
    }
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();
    }
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 ( ) ; }
Sets the default finder to use for fetching rows from the target table.
If no parameters are passed, it will return the currently configured
finder name.

@deprecated 3.4.0 Use setFinder()/getFinder() instead.
@param string|null $finder the finder name to use
@return string|array
Sets the default finder to use for fetching rows from the target table . If no parameters are passed it will return the currently configured finder name .