Пример #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
 public function __construct()
 {
     ProtoObject::__construct();
 }