From 1f2f2c58bfc8c24a33bf738561d142a7c0fb8545 Mon Sep 17 00:00:00 2001 From: Groups Date: Sun, 30 Jul 2017 20:20:17 -0700 Subject: [PATCH] registered edges are now also exported --- src/Pho/Framework/ParticleTrait.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Pho/Framework/ParticleTrait.php b/src/Pho/Framework/ParticleTrait.php index c315318..48635f3 100644 --- a/src/Pho/Framework/ParticleTrait.php +++ b/src/Pho/Framework/ParticleTrait.php @@ -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(); }