protected function setGetter(callable $getter)
    {
        $this->getter = $getter;

        if (is_array($getter) && is_object($getter[0])) {
            $this->_creator = $getter[0];
        }

        return $this;
    }
protected function setGetter(callable $getter)
    {
        $this->getter = $getter;

        if (is_array($getter) && is_object($getter[0])) {
            $this->_creator = $getter[0];
        }

        return $this;
    }
protected function setGetter ( callable $ getter ) { $ this -> getter = $ getter ; if ( is_array ( $ getter ) && is_object ( $ getter [ 0 ] ) ) { $ this -> _creator = $ getter [ 0 ] ; } return $ this ; }
Set the getter to retrieve the results.

@param callable $getter

@return self
Set the getter to retrieve the results .