1
0
mirror of https://github.com/dg/dibi.git synced 2025-10-26 19:21:43 +01:00

NClass moved to separate file

This commit is contained in:
David Grudl
2007-11-26 01:44:07 +00:00
parent a0febd3d50
commit 1a9abfb326
5 changed files with 53 additions and 32 deletions

39
dibi/libs/NClass.php Normal file
View File

@@ -0,0 +1,39 @@
<?php
/**
* dibi - tiny'n'smart database abstraction layer
* ----------------------------------------------
*
* Copyright (c) 2005, 2007 David Grudl aka -dgx- (http://www.dgx.cz)
*
* This source file is subject to the "dibi license" that is bundled
* with this package in the file license.txt.
*
* For more information please see http://php7.org/dibi/
*
* @copyright Copyright (c) 2004, 2007 David Grudl
* @license http://php7.org/nette/license Nette license
* @link http://php7.org/nette/
* @package Nette
*/
/**
* NClass is the ultimate ancestor of all uninstantiable classes.
*
* @author David Grudl
* @copyright Copyright (c) 2004, 2007 David Grudl
* @license http://php7.org/nette/license Nette license
* @link http://php7.org/nette/
* @package Nette
*/
abstract class NClass
{
final public function __construct()
{
throw new LogicException("Cannot instantiate static class " . get_class($this));
}
}