code: public function getReferences(Query $query = null): ResourceArray
      {
          $query = $query ?: new Query();
          $query->linksToEntry($this->getId());
  
          return $this->client->getEntries($query);
      }
docs: Gets all entries that contain links to the current one.
  You can provide a Query object in order to set parameters
  such as locale, include, and sorting.
  
  @param Query|null $query
  
  @return ResourceArray