original_string: public function write(ModelInformationInterface $information, array $config = [])
      {
          $this->information = $information;
          $this->config      = $config;
  
          $this->content = [];
          $this->path    = $this->getInformationTargetPath();
          $keys          = $this->getKeysToWrite();
  
          $this->checkWhetherFileAlreadyExists();
  
          foreach ($keys as $key) {
              $this->writeKey($key);
          }
  
          $this->writeContentToFile();
  
          return $this->path;
      }
code: public function write(ModelInformationInterface $information, array $config = [])
      {
          $this->information = $information;
          $this->config      = $config;
  
          $this->content = [];
          $this->path    = $this->getInformationTargetPath();
          $keys          = $this->getKeysToWrite();
  
          $this->checkWhetherFileAlreadyExists();
  
          foreach ($keys as $key) {
              $this->writeKey($key);
          }
  
          $this->writeContentToFile();
  
          return $this->path;
      }
code_tokens: public function write ( ModelInformationInterface $ information , array $ config = [ ] ) { $ this -> information = $ information ; $ this -> config = $ config ; $ this -> content = [ ] ; $ this -> path = $ this -> getInformationTargetPath ( ) ; $ keys = $ this -> getKeysToWrite ( ) ; $ this -> checkWhetherFileAlreadyExists ( ) ; foreach ( $ keys as $ key ) { $ this -> writeKey ( $ key ) ; } $ this -> writeContentToFile ( ) ; return $ this -> path ; }
docstring: Writes model information basics to a cms model file.
  
  @param ModelInformationInterface $information
  @param array                     $config
  @return string   path to written file
docstring_tokens: Writes model information basics to a cms model file .