PHP Transformation

The PHP transformation converts Platform-Independent Model (PIM) elements to language-specific PHP Class elements.

The transformation converts the PIM model types to PHP types and creates encapsulation according to your options for creating properties from PHP attributes; that is, producing the getters and setters according to the rules you have defined on the PHP Specifications page of the Options dialog. Note that the public attributes in the PIM are converted to private attributes in the PSM.

Example

The Platform-Independent Model (PIM)

CPP PIM

 

After transformation, becomes the PSM

PHP PSM

Learn more