Skip to content
This repository has been archived by the owner on Jul 6, 2024. It is now read-only.

Latest commit

 

History

History
25 lines (18 loc) · 531 Bytes

LazyValidationMappingProvider.md

File metadata and controls

25 lines (18 loc) · 531 Bytes

LazyValidationMappingProvider

<?php

use Chubbyphp\Validation\Mapping\LazyValidationMappingProvider;
use MyProject\Model\Model;

$container = ...;

$mappingProvider = new LazyValidationMappingProvider(
    $container,
    'myproject.denormalizer.mapping.model',
    Model::class
);

$mappingProvider->getClass();
// \Namespace\To\Model

$mappingProvider->getValidationClassMapping('');
// ValidationClassMappingInterface[]

$mappingProvider->getValidationPropertyMappings('');
// ValidationPropertyMappingInterface[]