phpOMS/Validation/ValidatorAbstract.php
2016-07-23 18:17:25 +02:00

64 lines
1.1 KiB
PHP

<?php
/**
* Orange Management
*
* PHP Version 7.0
*
* @category TBD
* @package TBD
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @copyright 2013 Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://orange-management.com
*/
namespace phpOMS\Validation;
/**
* Validator abstract.
*
* @category Validation
* @package Framework
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @license OMS License 1.0
* @link http://orange-management.com
* @since 1.0.0
*/
abstract class ValidatorAbstract
{
/**
* Error code.
*
* @var int
* @since 1.0.0
*/
protected static $error = 0;
/**
* Message string.
*
* @var string
* @since 1.0.0
*/
protected static $msg = '';
/**
* {@inheritdoc}
*/
public static function getMessage() : string
{
return self::$msg;
}
/**
* {@inheritdoc}
*/
public static function getErrorCode() : int
{
return self::$error;
}
}