From d34836a77abf95cbe01f31cd4326915b4e534257 Mon Sep 17 00:00:00 2001 From: Jakub Kuczys Date: Sun, 11 Jun 2023 02:08:46 +0200 Subject: [PATCH] Add __debugInfo without cogs list to Repo --- public/index.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/public/index.php b/public/index.php index 7d13d6f..8759fb9 100644 --- a/public/index.php +++ b/public/index.php @@ -170,6 +170,17 @@ public static function fromArray(string $url, array $data): static { } return $repo; } + + public function __debugInfo() { + return [ + 'url' => $this->url, + 'name' => $this->name, + 'category' => $this->category, + 'added_at' => $this->added_at, + 'approved_at' => $this->approved_at, + 'branch' => $this->branch, + ]; + } } class Cog