php class foo public function __construct self blah public static func

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
<?php
class foo
{
public function __construct()
{
self::blah();
}
public static function blah()
{
return new self();
}
}
new foo();