original_string: public function setController(Controller $controller)
      {
          $this->_Controller = $controller;
          $this->setEventManager($controller->getEventManager());
      }
code: public function setController(Controller $controller)
      {
          $this->_Controller = $controller;
          $this->setEventManager($controller->getEventManager());
      }
code_tokens: public function setController ( Controller $ controller ) { $ this -> _Controller = $ controller ; $ this -> setEventManager ( $ controller -> getEventManager ( ) ) ; }
docstring: Set the controller associated with the collection.
  
  @param \Cake\Controller\Controller $controller Controller instance.
  @return void
docstring_tokens: Set the controller associated with the collection .