original_string: private function relativeSymlinkWithFallback(string $originDir, string $targetDir): string
      {
          try {
              $this->symlink($originDir, $targetDir, true);
              $method = self::METHOD_RELATIVE_SYMLINK;
          } catch (IOException $e) {
              $method = $this->absoluteSymlinkWithFallback($originDir, $targetDir);
          }
  
          return $method;
      }
code: private function relativeSymlinkWithFallback(string $originDir, string $targetDir): string
      {
          try {
              $this->symlink($originDir, $targetDir, true);
              $method = self::METHOD_RELATIVE_SYMLINK;
          } catch (IOException $e) {
              $method = $this->absoluteSymlinkWithFallback($originDir, $targetDir);
          }
  
          return $method;
      }
code_tokens: private function relativeSymlinkWithFallback ( string $ originDir , string $ targetDir ) : string { try { $ this -> symlink ( $ originDir , $ targetDir , true ) ; $ method = self :: METHOD_RELATIVE_SYMLINK ; } catch ( IOException $ e ) { $ method = $ this -> absoluteSymlinkWithFallback ( $ originDir , $ targetDir ) ; } return $ method ; }
docstring: Try to create relative symlink.
  
  Falling back to absolute symlink and finally hard copy.
docstring_tokens: Try to create relative symlink .