original_string: public function getObjectUrl($repositoryId, $objectId, $selector = null)
      {
          if ($this->getRootUrl($repositoryId) === null) {
              return null;
          }
  
          $url = $this->buildUrl($this->getRootUrl($repositoryId));
          $urlQuery = $url->getQuery();
          $urlQuery->modify([Constants::PARAM_OBJECT_ID => (string) $objectId]);
  
          if (!empty($selector)) {
              $urlQuery->modify([Constants::PARAM_SELECTOR => (string) $selector]);
          }
  
          return $url;
      }
code: public function getObjectUrl($repositoryId, $objectId, $selector = null)
      {
          if ($this->getRootUrl($repositoryId) === null) {
              return null;
          }
  
          $url = $this->buildUrl($this->getRootUrl($repositoryId));
          $urlQuery = $url->getQuery();
          $urlQuery->modify([Constants::PARAM_OBJECT_ID => (string) $objectId]);
  
          if (!empty($selector)) {
              $urlQuery->modify([Constants::PARAM_SELECTOR => (string) $selector]);
          }
  
          return $url;
      }
code_tokens: public function getObjectUrl ( $ repositoryId , $ objectId , $ selector = null ) { if ( $ this -> getRootUrl ( $ repositoryId ) === null ) { return null ; } $ url = $ this -> buildUrl ( $ this -> getRootUrl ( $ repositoryId ) ) ; $ urlQuery = $ url -> getQuery ( ) ; $ urlQuery -> modify ( [ Constants :: PARAM_OBJECT_ID => ( string ) $ objectId ] ) ; if ( ! empty ( $ selector ) ) { $ urlQuery -> modify ( [ Constants :: PARAM_SELECTOR => ( string ) $ selector ] ) ; } return $ url ; }
docstring: Get URL for an object request
  
  @param string $repositoryId
  @param string $objectId
  @param string|null $selector
  @return Url|null
docstring_tokens: Get URL for an object request