stingus/phpdt

View on GitHub
src/PHPdt/DataType/DoubleDataType.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace PHPdt\DataType;

/**
 * Class DoubleDataType.
 * Double data type
 *
 * @package PHPdt\DataType
 */
class DoubleDataType extends PrimitiveDataType
{
    /**
     * @inheritdoc
     */
    public static function typeValidator()
    {
        return function ($value) {
            return is_float($value);
        };
    }
}