Telosys version : 3.3.0
To define PHP as the target language call #set( $env.language = 'PHP' ) in the templates files.
The information below shows the behavior of the generator when 'PHP' is the current target language.
| Model type | Default | @UnsignedType | @NotNull | @PrimitiveType | @ObjectType |
|---|---|---|---|---|---|
| string | |||||
| byte | |||||
| short | |||||
| int | |||||
| long | |||||
| decimal | |||||
| float | |||||
| double | |||||
| boolean | |||||
| date | |||||
| time | |||||
| timestamp | |||||
| binary |
PHP is dynamically typed, there are no types in the source code.
Hence the type conversion always return a void string.
| TRUE | true |
| FALSE | false |
| NULL | null |
| Model type | Language type | Language full type | Language literal value example |
|---|---|---|---|
| string | "AAA" | ||
| byte | 1 | ||
| short | 1 | ||
| int | 100 | ||
| long | 1000 | ||
| decimal | 10000.77 | ||
| float | 1000.5 | ||
| double | 1000.66 | ||
| boolean | true | ||
| date | null | ||
| time | null | ||
| timestamp | null | ||
| binary | null |