|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-10-29 17:13 UTC] pollita@php.net
[2011-10-27 07:16 UTC] sebastian@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: sebastian
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 19:00:01 2025 UTC |
Description: ------------ Two new functions that make a class inherit from another class (if it does not have a parent class, yet) and implement an interface (if it implements the required methods), respectively, would be nice. Reproduce code: --------------- <?php class ParentClass {} class ChildClass {} runkit_inherit_class('ChildClass', 'ParentClass'); interface I {public function doSomething();} class C {public function doSomething() {}} runkit_implement_interface('C', 'I'); ?> Expected result: ---------------- <?php class ChildClass extends ParentClass {} class C implements I {public function doSomething() {}} ?>