Strata\Shell\Command\Generator\ModelGenerator

Generates a Strata model

    Synopsis

    class ModelGenerator extends GeneratorBase {
    }

    Hierarchy

    Members

    protected

    Methods

    protected

    • generateEntity() — Configures the class writer and makes it generate the accompanying model entity required by the object type.
    • generateEntityTest() — Configures the class writer and makes it generate the test classes required by the accompanying model entity.
    • generateModel() — Configures the class writer and makes it generate the classes required by the object type.
    • generateTest() — Configures the class writer and makes it generate the test classes required by the object type.
    • getExtends() — {@inheritdoc}
    • getScaffoldMessage() — {@inheritdoc}

    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.