function Factory::__construct
Same name in this branch
- 11.1.x vendor/sebastian/comparator/src/Factory.php \SebastianBergmann\Comparator\Factory::__construct()
- 11.1.x vendor/phpspec/prophecy/src/Prophecy/Comparator/Factory.php \Prophecy\Comparator\Factory::__construct()
Parameters
SchemaStorage $schemaStorage:
UriRetrieverInterface $uriRetriever:
int $checkMode:
File
-
vendor/
justinrainbow/ json-schema/ src/ JsonSchema/ Constraints/ Factory.php, line 76
Class
- Factory
- Factory for centralize constraint initialization.
Namespace
JsonSchema\ConstraintsCode
public function __construct(?SchemaStorageInterface $schemaStorage = null, ?UriRetrieverInterface $uriRetriever = null, $checkMode = Constraint::CHECK_MODE_NORMAL) {
// set provided config options
$this->setConfig($checkMode);
$this->uriRetriever = $uriRetriever ?: new UriRetriever();
$this->schemaStorage = $schemaStorage ?: new SchemaStorage($this->uriRetriever);
}