Skip to content

Commit 72ddefb

Browse files
committed
Add destruct into _Object
1 parent 8a7d11d commit 72ddefb

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/Imitation/PHPJava/Extended/_Object.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ public function __construct(...$parameters)
99
{
1010
}
1111

12+
public function __destruct()
13+
{
14+
$this->finalize();
15+
}
16+
1217
public function __call($name, $arguments)
1318
{
1419
throw new NoSuchMethodException($name . ' does not exist on ' . get_class($this));
@@ -62,4 +67,8 @@ public function wait(int $timeout = null, int $nanos = null): void
6267
{
6368
// not implemented.
6469
}
70+
71+
public function finalize(): void
72+
{
73+
}
6574
}

0 commit comments

Comments
 (0)