* @author Dennis Eichhorn * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 * @link http://orange-management.com */ declare(strict_types=1); namespace phpOMS\DataStorage\Database; use phpOMS\Datatypes\Enum; /** * Database status enum. * * Possible database connection status * * @category Framework * @package phpOMS\DataStorage\Database * @author OMS Development Team * @author Dennis Eichhorn * @license OMS License 1.0 * @link http://orange-management.com * @since 1.0.0 */ abstract class DatabaseStatus extends Enum { /* public */ const OK = 0; /* Database connection successful */ /* public */ const MISSING_DATABASE = 1; /* Couldn't find database */ /* public */ const MISSING_TABLE = 2; /* One of the core tables couldn't be found */ /* public */ const FAILURE = 3; /* Unknown failure */ /* public */ const READONLY = 4; /* Database connection is in readonly (but ok) */ /* public */ const CLOSED = 5; /* Database connection closed */ }