original_string: public function set_installer_instance(tool_installaddon_installer $installer) {
          if (is_null($this->installer)) {
              $this->installer = $installer;
          } else {
              throw new coding_exception('Attempting to reset the installer instance.');
          }
      }
code: public function set_installer_instance(tool_installaddon_installer $installer) {
          if (is_null($this->installer)) {
              $this->installer = $installer;
          } else {
              throw new coding_exception('Attempting to reset the installer instance.');
          }
      }
code_tokens: public function set_installer_instance ( tool_installaddon_installer $ installer ) { if ( is_null ( $ this -> installer ) ) { $ this -> installer = $ installer ; } else { throw new coding_exception ( 'Attempting to reset the installer instance.' ) ; } }
docstring: Sets the tool_installaddon_installer instance being used.
  
  @throws coding_exception if the installer has been already set
  @param tool_installaddon_installer $installer
docstring_tokens: Sets the tool_installaddon_installer instance being used .