src/Memio/PrettyPrinter/PrettyPrinter.php
public function generateCode($model, array $parameters = []): string
    {
        foreach ($this->codeGenerators as $codeGenerator) {
            if ($codeGenerator->supports($model, $parameters)) {
                return $codeGenerator->generateCode($model, $parameters);
            }
        }

        throw new InvalidArgumentException('No PrettyPrinter support the given model and parameters');
    }
public function generateCode($model, array $parameters = []): string
    {
        foreach ($this->codeGenerators as $codeGenerator) {
            if ($codeGenerator->supports($model, $parameters)) {
                return $codeGenerator->generateCode($model, $parameters);
            }
        }

        throw new InvalidArgumentException('No PrettyPrinter support the given model and parameters');
    }
@throws InvalidArgumentException If the given model and parameters aren't supported

@api