예제 #1
0
 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();
 }