Skip to content

Commit

Permalink
Docblocks on federation properties
Browse files Browse the repository at this point in the history
  • Loading branch information
rjzondervan committed Mar 13, 2024
1 parent 9b3b2cc commit c0a5ddf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion api/src/Entity/Endpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,13 @@ class Endpoint
private string $version = '0.0.0';

/**
* @var Collection The proxies that can be used for federated calls.
*
* @MaxDepth(1)
* @Groups({"read", "write"})
* @ORM\ManyToMany(targetEntity=Gateway::class, inversedBy="federationEndpoints")
*/
private $federationProxies;
private Collection $federationProxies;

/**
* Constructor for creating an Endpoint. Use $entity to create an Endpoint for an Entity or
Expand Down
5 changes: 4 additions & 1 deletion api/src/Entity/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -768,10 +768,13 @@ class Gateway
private $proxies;

/**
* @var Collection The endpoints for which this endpoint is a federated proxy.
*
* @MaxDepth(1)
* @Groups({"read", "write"})
* @ORM\ManyToMany(targetEntity=Endpoint::class, mappedBy="federationProxies")
*/
private $federationEndpoints;
private Collection $federationEndpoints;

/**
* Constructor for Gateway.
Expand Down

0 comments on commit c0a5ddf

Please sign in to comment.