original_string: public static function fromResourceLink($resourceLink, $ltiUserId)
      {
  
          $user = new User();
          $user->resourceLink = $resourceLink;
          if (!is_null($resourceLink)) {
              $user->resourceLinkId = $resourceLink->getRecordId();
              $user->dataConnector = $resourceLink->getDataConnector();
          }
          $user->ltiUserId = $ltiUserId;
          if (!empty($ltiUserId)) {
              $user->load();
          }
  
          return $user;
  
      }
code: public static function fromResourceLink($resourceLink, $ltiUserId)
      {
  
          $user = new User();
          $user->resourceLink = $resourceLink;
          if (!is_null($resourceLink)) {
              $user->resourceLinkId = $resourceLink->getRecordId();
              $user->dataConnector = $resourceLink->getDataConnector();
          }
          $user->ltiUserId = $ltiUserId;
          if (!empty($ltiUserId)) {
              $user->load();
          }
  
          return $user;
  
      }
code_tokens: public static function fromResourceLink ( $ resourceLink , $ ltiUserId ) { $ user = new User ( ) ; $ user -> resourceLink = $ resourceLink ; if ( ! is_null ( $ resourceLink ) ) { $ user -> resourceLinkId = $ resourceLink -> getRecordId ( ) ; $ user -> dataConnector = $ resourceLink -> getDataConnector ( ) ; } $ user -> ltiUserId = $ ltiUserId ; if ( ! empty ( $ ltiUserId ) ) { $ user -> load ( ) ; } return $ user ; }
docstring: Class constructor from resource link.
  
  @param ResourceLink $resourceLink Resource_Link object
  @param string $ltiUserId User ID value
  @return User
docstring_tokens: Class constructor from resource link .