stingus/phpdt

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

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace PHPdt\DataType;

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