Youshido\Tests\Library\Validator\TypeValidationRuleTest::complexRuleProvider PHP Method

complexRuleProvider() public static method

public static complexRuleProvider ( )
    public static function complexRuleProvider()
    {
        return [[TypeService::TYPE_OBJECT_INPUT_TYPE, new TestInputObjectType()], [TypeService::TYPE_OBJECT_INPUT_TYPE, new StringType(), false], [TypeService::TYPE_ARRAY_OF_INPUT_FIELDS, [new TestInputObjectType(), new TestInputField()]], [TypeService::TYPE_ARRAY_OF_INPUT_FIELDS, [new StringType()]], [TypeService::TYPE_ARRAY_OF_INPUT_FIELDS, [['type' => TypeMap::TYPE_STRING]]], [TypeService::TYPE_ARRAY_OF_INPUT_FIELDS, [[]], false], [TypeService::TYPE_ARRAY_OF_INPUT_FIELDS, new StringType(), false], [TypeService::TYPE_ARRAY_OF_OBJECT_TYPES, [new TestObjectType()]], [TypeService::TYPE_ARRAY_OF_OBJECT_TYPES, [], false]];
    }