예제 #1
0
파일: lsb_003.php 프로젝트: badlamer/hhvm
<?php

class TestClass
{
    public static function createInstance()
    {
        return new static();
    }
}
class ChildClass extends TestClass
{
}
$testClass = TestClass::createInstance();
$childClass = ChildClass::createInstance();
echo get_class($testClass) . "\n";
echo get_class($childClass) . "\n";
?>
==DONE==