Skip to content

Commit

Permalink
registered edges are now also exported
Browse files Browse the repository at this point in the history
  • Loading branch information
esokullu committed Jul 31, 2017
1 parent 24825fa commit 1f2f2c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Pho/Framework/ParticleTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,10 @@ public function toArray(): array
{
$array = parent::toArray();
$array["creator"] = $this->creator_id;
$array["registered_edges"] = [
"in" => $this->incoming_edges,
"out" => $this->outgoing_edges,
];
if($this instanceof Actor) {
$array["notifications"] = $this->notifications()->toArray();
}
Expand Down

0 comments on commit 1f2f2c5

Please sign in to comment.