for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Smoren\Schemator\Factories;
use Smoren\Schemator\Components\Schemator;
use Smoren\Schemator\Interfaces\SchematorBuilderInterface;
use Smoren\Schemator\Interfaces\SchematorInterface;
class SchematorBuilder implements SchematorBuilderInterface
{
protected SchematorInterface $schemator;
public function __construct()
$this->create();
}
public function create(): SchematorBuilderInterface
$this->schemator = new Schemator();
return $this;
public function withFilters(array $filters): SchematorBuilderInterface
foreach($filters as $filterName => $filter) {
$this->schemator->addFilter($filterName, $filter);
public function get(): SchematorInterface
return $this->schemator;