Skip to content

Commit fc9e7b9

Browse files
committed
Update __debugInfo
1 parent 72ddefb commit fc9e7b9

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

src/Core/JVM/Invoker/InvokerInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ interface InvokerInterface
88
public function __construct(JavaClassInvoker $javaClassInvoker, array $methods);
99
public function call(string $name, ...$arguments);
1010
public function isDynamic(): bool;
11+
public function getList(): array;
1112
}

src/Core/JavaClass.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,18 @@ public function __construct(JavaClassReader $reader)
165165
$this->invoker = new JavaClassInvoker($this);
166166
}
167167

168+
public function __debugInfo()
169+
{
170+
return [
171+
'className' => $this->getClassName(),
172+
'superClass' => get_class($this->getSuperClass()),
173+
'methods' => [
174+
'static' => array_keys($this->invoker->getStatic()->getMethods()->getList()),
175+
'dynamic' => array_keys($this->invoker->getDynamic()->getMethods()->getList()),
176+
],
177+
];
178+
}
179+
168180
public function getClassName(bool $shortName = false): string
169181
{
170182
if ($shortName === true) {

0 commit comments

Comments
 (0)