Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 595 Bytes

README.md

File metadata and controls

16 lines (14 loc) · 595 Bytes

PHP

Implementation for data types:

  • Bool — represented as bool.
  • Int32 — represented as int.
  • Int64 — represented as int.
  • Float32 — represented as float.
  • Float64 — represented as float.
  • String — represented as string.
  • Option<T> — represented as ?T.
  • Vec<T> — represented as array.
  • Map<K, V> — represented as array.
  • Struct — represented as a regular class.
  • Enum — represented as a class with const properties for each variant.
  • OneOf — represented as an abstract class with each variant inheriting from it.