Search code examples
phpumlgetter-setterenterprise-architectgenerated-code

Generate getters and setters for PHP in Enterprise Architect


I'm using Enterprise Architect to make a UML class diagram and generate PHP5 code. How can I generate getter and setter methods for a certain class?


Solution

  • Add the <<Property>> Stereotype to the attribute you want to create Getters and Setters for.

    For further reference see