コード例 #1
0
ファイル: prototypal.php プロジェクト: Koc/Prototypal
 public function __construct()
 {
     if (self::$prototype === null) {
         $parent = get_parent_class() === false || !isset(parent::$prototype) ? null : parent::$prototype;
         self::$prototype = new Prototype(get_called_class(), $parent);
     }
 }
コード例 #2
0
ファイル: example.php プロジェクト: Koc/Prototypal
 public function __construct()
 {
     ProtoObject::__construct();
 }