stingus/phpdt

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

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace PHPdt\DataType;

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