original_string: protected function setRoot(EntityInterface $entity): void
      {
          if (!$entity->file_exists() || !$entity->is_dir()) {
              throw new Exception('Root directory is not valid');
          }
  
          $this->root = $entity;
      }
code: protected function setRoot(EntityInterface $entity): void
      {
          if (!$entity->file_exists() || !$entity->is_dir()) {
              throw new Exception('Root directory is not valid');
          }
  
          $this->root = $entity;
      }
code_tokens: protected function setRoot ( EntityInterface $ entity ) : void { if ( ! $ entity -> file_exists ( ) || ! $ entity -> is_dir ( ) ) { throw new Exception ( 'Root directory is not valid' ) ; } $ this -> root = $ entity ; }
docstring: Init root.
docstring_tokens: Init root .