wol-soft/php-json-schema-model-generator

View on GitHub
src/SchemaProcessor/PostProcessor/PostProcessor.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

declare(strict_types = 1);

namespace PHPModelGenerator\SchemaProcessor\PostProcessor;

use PHPModelGenerator\Model\GeneratorConfiguration;
use PHPModelGenerator\Model\Schema;

abstract class PostProcessor
{
    /**
     * Have fun doin' crazy stuff with the schema
     *
     * @param Schema $schema
     * @param GeneratorConfiguration $generatorConfiguration
     */
    abstract public function process(Schema $schema, GeneratorConfiguration $generatorConfiguration): void;

    /**
     * Overwrite this function to execute code before the schemas are processed by the post processor
     */
    public function preProcess(): void
    {
    }

    /**
     * Overwrite this function to execute code after the schemas are processed by the post processor
     */
    public function postProcess(): void
    {
    }
}