Strata\Shell\Command\Generator\ValidatorGenerator

Generates a Strata model entity validator

    Synopsis

    class ValidatorGenerator extends GeneratorBase {
    }

    Hierarchy

    Members

    protected

    Methods

    protected

    • generateTest() — Configures the class writer and makes it generate the test classes required by the object type.
    • generateValidator() — Configures the class writer and makes it generate the classes required by the object type.

    public

    Inherited from Strata\Shell\Command\Generator\GeneratorBase

    protected

    • getWriter() — Obtain an instantiated ClassWriter object to create files.

    public

    • applyOptions() — Send option values to the generator so it can manipulate the information.
    • generate() — Performs all the operations required by the generator.