Skip to content

Commit d34836a

Browse files
committed
Add __debugInfo without cogs list to Repo
1 parent b287b48 commit d34836a

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

public/index.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,17 @@ public static function fromArray(string $url, array $data): static {
170170
}
171171
return $repo;
172172
}
173+
174+
public function __debugInfo() {
175+
return [
176+
'url' => $this->url,
177+
'name' => $this->name,
178+
'category' => $this->category,
179+
'added_at' => $this->added_at,
180+
'approved_at' => $this->approved_at,
181+
'branch' => $this->branch,
182+
];
183+
}
173184
}
174185

175186
class Cog

0 commit comments

Comments
 (0)