original_string: public function getRelationships(
          ObjectIdInterface $objectId,
          $includeSubRelationshipTypes,
          RelationshipDirection $relationshipDirection,
          ObjectTypeInterface $type,
          OperationContextInterface $context = null
      ) {
  
          if ($context === null) {
              $context = $this->getDefaultContext();
          }
  
          // TODO: Implement cache!
  
          return $this->getBinding()->getRelationshipService()->getObjectRelationships(
              $this->getRepositoryId(),
              $objectId->getId(),
              $includeSubRelationshipTypes,
              $relationshipDirection,
              $type->getId()
          );
      }
code: public function getRelationships(
          ObjectIdInterface $objectId,
          $includeSubRelationshipTypes,
          RelationshipDirection $relationshipDirection,
          ObjectTypeInterface $type,
          OperationContextInterface $context = null
      ) {
  
          if ($context === null) {
              $context = $this->getDefaultContext();
          }
  
          // TODO: Implement cache!
  
          return $this->getBinding()->getRelationshipService()->getObjectRelationships(
              $this->getRepositoryId(),
              $objectId->getId(),
              $includeSubRelationshipTypes,
              $relationshipDirection,
              $type->getId()
          );
      }
code_tokens: public function getRelationships ( ObjectIdInterface $ objectId , $ includeSubRelationshipTypes , RelationshipDirection $ relationshipDirection , ObjectTypeInterface $ type , OperationContextInterface $ context = null ) { if ( $ context === null ) { $ context = $ this -> getDefaultContext ( ) ; } // TODO: Implement cache! return $ this -> getBinding ( ) -> getRelationshipService ( ) -> getObjectRelationships ( $ this -> getRepositoryId ( ) , $ objectId -> getId ( ) , $ includeSubRelationshipTypes , $ relationshipDirection , $ type -> getId ( ) ) ; }
docstring: Fetches the relationships from or to an object from the repository.
  
  @param ObjectIdInterface $objectId
  @param boolean $includeSubRelationshipTypes
  @param RelationshipDirection $relationshipDirection
  @param ObjectTypeInterface $type
  @param OperationContextInterface|null $context
  @return RelationshipInterface[]
docstring_tokens: Fetches the relationships from or to an object from the repository .