uniter
uniter copied to clipboard
Add support for interface
I've tried
interface Yopyop {
}
I've got :
PHP Parse error: syntax error, unexpected 'Y' in (program) on line 3
Did I miss something ? :eyeglasses:
Hi @Trismegiste,
Thanks for reporting this - unfortunately there's no support for interface
s in Uniter just yet. It's on my roadmap to be implemented at some point soon.
Cheers!
Hi @Trismegiste,
There is now partial interface support in Uniter - constants defined on the interface are accessible from the interface or from classes that implement it, for example:
<?php
interface Yopyop {
const a = 4;
}
class Test implements Yopyop {}
print Test::a;
Cheers!