<?php class Db { public static function getInstance() { return "Hi, I'm a test"; } } class Entity { } class Player extends Entity { public function setPlayer() { return Db::getInstance(); } } $x = new Player(); echo $x->setPlayer();
You have javascript disabled. You will not be able to edit any code.