From 19d7cc469aa1d77393d36fecf9c2dcf0177025af Mon Sep 17 00:00:00 2001 From: mappu Date: Tue, 7 Apr 2020 21:53:00 +1200 Subject: [PATCH] node: support interfaces --- README.md | 2 +- fixtures/0007-interfaces.php | 9 ++++++ node.go | 58 ++++++++++++++++++++++++++++++++---- 3 files changed, 62 insertions(+), 7 deletions(-) create mode 100644 fixtures/0007-interfaces.php diff --git a/README.md b/README.md index b7b7efc..324a5f6 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ The goal is to produce idiomatic, maintainable Go code as part of a one-off conv - *PHP variable names are case-sensitive, function names are case-insensitive* - [X] Static methods - [X] Inheritance *partial* - - [ ] Interfaces + - [X] Interfaces - [X] super - [X] Need to track current conversion state through into function generator, to select the concrete parent - [X] parent:: diff --git a/fixtures/0007-interfaces.php b/fixtures/0007-interfaces.php new file mode 100644 index 0000000..bd3c26d --- /dev/null +++ b/fixtures/0007-interfaces.php @@ -0,0 +1,9 @@ +