for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Zenstruck\Porpaginas\Specification\Normalizer;
use Zenstruck\Porpaginas\Specification\Normalizer;
/**
* @author Kevin Bond <[email protected]>
*/
trait WithNormalizer
{
private ?Normalizer $normalizer = null;
public function setNormalizer(Normalizer $normalizer): void
$this->normalizer = $normalizer;
}
protected function normalizer(): Normalizer
if (!$this->normalizer) {
throw new \RuntimeException('A normalizer has not been set.');
return $this->normalizer;