/** * @param UriInterface $baseUri * @param ResolutionScopeMapFactoryInterface|null $scopeMapFactory * @param UriResolverInterface|null $uriResolver * @param ReaderInterface|null $reader * @param UriFactoryInterface|null $uriFactory * @param PointerFactoryInterface|null $pointerFactory * @param PointerResolverInterface|null $pointerResolver * @param Value\ValueTransformInterface|null $placeholderUnwrap */ public function __construct(UriInterface $baseUri, ResolutionScopeMapFactoryInterface $scopeMapFactory = null, UriResolverInterface $uriResolver = null, ReaderInterface $reader = null, UriFactoryInterface $uriFactory = null, PointerFactoryInterface $pointerFactory = null, PointerResolverInterface $pointerResolver = null, Value\ValueTransformInterface $placeholderUnwrap = null) { parent::__construct(); if (null === $scopeMapFactory) { $scopeMapFactory = new FixedResolutionScopeMapFactory(); } if (null === $uriResolver) { $uriResolver = new UriResolver(); } if (null === $reader) { $reader = new Reader(); } if (null === $uriFactory) { $uriFactory = new UriFactory(); } if (null === $pointerFactory) { $pointerFactory = new PointerFactory(); } if (null === $pointerResolver) { $pointerResolver = new PointerResolver(); } if (null === $placeholderUnwrap) { $placeholderUnwrap = new Value\Transform\PlaceholderUnwrapTransform(); } $this->baseUri = $baseUri; $this->scopeMapFactory = $scopeMapFactory; $this->uriResolver = $uriResolver; $this->reader = $reader; $this->uriFactory = $uriFactory; $this->pointerFactory = $pointerFactory; $this->pointerResolver = $pointerResolver; $this->placeholderUnwrap = $placeholderUnwrap; }
/** * @param Result\ValidationResult $result * @param Comparator|null $comparator */ public function __construct(Result\ValidationResult $result, Comparator $comparator = null) { parent::__construct(); if (null === $comparator) { $comparator = new Comparator(); } $this->result = $result; $this->comparator = $comparator; }