2017-09-15 14:36:37 +03:00
|
|
|
<?php
|
2016-07-09 11:05:33 +03:00
|
|
|
|
|
|
|
/* ----------------------------------------------------------------------------
|
|
|
|
* Easy!Appointments - Open Source Web Scheduler
|
|
|
|
*
|
|
|
|
* @package EasyAppointments
|
|
|
|
* @author A.Tselegidis <alextselegidis@gmail.com>
|
2020-03-11 12:10:59 +03:00
|
|
|
* @copyright Copyright (c) 2013 - 2020, Alex Tselegidis
|
2016-07-09 11:05:33 +03:00
|
|
|
* @license http://opensource.org/licenses/GPL-3.0 - GPLv3
|
|
|
|
* @link http://easyappointments.org
|
|
|
|
* @since v1.2.0
|
|
|
|
* ---------------------------------------------------------------------------- */
|
|
|
|
|
2019-06-08 17:27:04 +03:00
|
|
|
namespace EA\Engine\Types;
|
2016-07-09 11:05:33 +03:00
|
|
|
|
2016-10-10 18:46:29 +03:00
|
|
|
class Decimal extends Type {
|
2017-09-15 14:36:37 +03:00
|
|
|
protected function _validate($value)
|
|
|
|
{
|
2016-07-09 12:03:34 +03:00
|
|
|
return is_float($value);
|
|
|
|
}
|
2016-07-09 11:05:33 +03:00
|
|
|
}
|