original_string: public function generate($actionManager)
      {
          if ($actionManager instanceof ActionManagerInterface) {
              $this->actionManager = $actionManager;
              $this->actionManagerClass = get_class($this->actionManager);
          }
  
          if (is_string($actionManager) && class_exists($actionManager)) {
              $this->actionManager = new $actionManager();
              $this->actionManagerClass = $actionManager;
          }
      }
code: public function generate($actionManager)
      {
          if ($actionManager instanceof ActionManagerInterface) {
              $this->actionManager = $actionManager;
              $this->actionManagerClass = get_class($this->actionManager);
          }
  
          if (is_string($actionManager) && class_exists($actionManager)) {
              $this->actionManager = new $actionManager();
              $this->actionManagerClass = $actionManager;
          }
      }
code_tokens: public function generate ( $ actionManager ) { if ( $ actionManager instanceof ActionManagerInterface ) { $ this -> actionManager = $ actionManager ; $ this -> actionManagerClass = get_class ( $ this -> actionManager ) ; } if ( is_string ( $ actionManager ) && class_exists ( $ actionManager ) ) { $ this -> actionManager = new $ actionManager ( ) ; $ this -> actionManagerClass = $ actionManager ; } }
docstring: Generates the ActionManager object
  
  @param mixed ActionManagerInterface|string $actionManager
docstring_tokens: Generates the ActionManager object