Пример #1
0
 public function __construct()
 {
     if (isset(self::$current)) {
         throw new ConstructionException('Cannot construct more than one instance of singleton class Cleaner.');
     }
     self::$current = $this;
 }