original_string: protected function _extractCallable($function, $object)
      {
          $method = $function['callable'];
          $options = $function;
          unset($options['callable']);
          if (is_string($method)) {
              $method = [$object, $method];
          }
  
          return [$method, $options];
      }
code: protected function _extractCallable($function, $object)
      {
          $method = $function['callable'];
          $options = $function;
          unset($options['callable']);
          if (is_string($method)) {
              $method = [$object, $method];
          }
  
          return [$method, $options];
      }
code_tokens: protected function _extractCallable ( $ function , $ object ) { $ method = $ function [ 'callable' ] ; $ options = $ function ; unset ( $ options [ 'callable' ] ) ; if ( is_string ( $ method ) ) { $ method = [ $ object , $ method ] ; } return [ $ method , $ options ] ; }
docstring: Auxiliary function to extract and return a PHP callback type out of the callable definition
  from the return value of the `implementedEvents` method on a Cake\Event\EventListenerInterface
  
  @param array $function the array taken from a handler definition for an event
  @param \Cake\Event\EventListenerInterface $object The handler object
  @return callable
docstring_tokens: Auxiliary function to extract and return a PHP callback type out of the callable definition from the return value of the implementedEvents method on a Cake \ Event \ EventListenerInterface