enterprise-architect

How to add primitive type 'String'?


I'd like to use EA for a PHP project. I was about adding attributes to my classes and found out that there is no type 'string', which actually is a primitive type in PHP. Where can I add it (in EA 12)? Or do I need to create a class String?

I guess this question is not restricted to PHP, right?


Solution

  • Go to Project|Settings|Code Engineering Datatypes...and select your language (or add it if it doesn't exists yet).

    Then add the datatypes enter image description here