original_string: public function setControllerData($controller)
      {
          if (is_string($controller)) {
              $controller = $this->app->normalizeClassName($controller, 'Data');
          } elseif (!$controller instanceof Controller_Data) {
              throw $this->exception('Inappropriate Controller. Must extend Controller_Data');
          }
          $this->controller = $this->setController($controller);
  
          return $this->controller;
      }
code: public function setControllerData($controller)
      {
          if (is_string($controller)) {
              $controller = $this->app->normalizeClassName($controller, 'Data');
          } elseif (!$controller instanceof Controller_Data) {
              throw $this->exception('Inappropriate Controller. Must extend Controller_Data');
          }
          $this->controller = $this->setController($controller);
  
          return $this->controller;
      }
code_tokens: public function setControllerData ( $ controller ) { if ( is_string ( $ controller ) ) { $ controller = $ this -> app -> normalizeClassName ( $ controller , 'Data' ) ; } elseif ( ! $ controller instanceof Controller_Data ) { throw $ this -> exception ( 'Inappropriate Controller. Must extend Controller_Data' ) ; } $ this -> controller = $ this -> setController ( $ controller ) ; return $ this -> controller ; }
docstring: Set the controller data of this model.
  
  @param string|Controller_Data $controller
  
  @return Controller_Data
docstring_tokens: Set the controller data of this model .