for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Schema Validator
*
* @author Vlad Shashkov <[email protected]>
* @copyright Copyright (c) 2021, The Myaza Software
*/
declare(strict_types=1);
namespace SchemaValidator;
use Symfony\Component\Validator\Context\ExecutionContextInterface;
* @codeCoverageIgnore
final class Context
{
public function __construct(
private string $rootPath,
private string $rootType,
private bool $strictTypes,
private ExecutionContextInterface $execution,
) {
}
public function getRootPath(): string
return $this->rootPath;
public function getExecution(): ExecutionContextInterface
return $this->execution;
* @return class-string|string
class-string|string
0
public function getRootType(): string
return $this->rootType;
public function withExecution(ExecutionContextInterface $execution): self
$new = clone $this;
$new->execution = $execution;
return $new;
public function isStrictTypes(): bool
return $this->strictTypes;