src/Traits/FindMethodTrait.php
protected function _extractFinder()
    {
        $finder = $this->findMethod();
        $options = [];
        if (is_array($finder)) {
            $options = (array)current($finder);
            $finder = key($finder);
        }

        return [$finder, $options];
    }
protected function _extractFinder()
    {
        $finder = $this->findMethod();
        $options = [];
        if (is_array($finder)) {
            $options = (array)current($finder);
            $finder = key($finder);
        }

        return [$finder, $options];
    }
protected function _extractFinder ( ) { $ finder = $ this -> findMethod ( ) ; $ options = [ ] ; if ( is_array ( $ finder ) ) { $ options = ( array ) current ( $ finder ) ; $ finder = key ( $ finder ) ; } return [ $ finder , $ options ] ; }
Extracts the finder name and options out of the "findMethod" option.

@return array An array containing in the first position the finder name
and in the second the options to be passed to it.
Extracts the finder name and options out of the findMethod option .