for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace RulerZ\Target;
use RulerZ\Compiler\Context;
use RulerZ\Target\Operators\Definitions;
use RulerZ\Target\Operators\GenericSqlDefinitions;
abstract class AbstractSqlTarget extends AbstractCompilationTarget
{
protected $allowStarOperator = true;
public function __construct(array $operators = [], array $inlineOperators = [], $allowStarOperator = true)
parent::__construct($operators, $inlineOperators);
$this->allowStarOperator = $allowStarOperator;
}
/**
* {@inheritdoc}
*/
protected function createVisitor(Context $context)
return new GenericSqlVisitor($context, $this->getOperators(), $this->allowStarOperator);
public function getOperators(): Definitions
return GenericSqlDefinitions::create(parent::getOperators());