Closed iluuu1994 closed 3 years ago
Public, private, and protected methods. (Protected methods are effectively identical to private as inheritance is not allowed.)
This is true only for enum cases but not the enums themselves.
enum Foo { case Bar { public function baz() { $this->qux(); // Error } } private function qux() {} }
Makes sense. I updated the RFC accordingly.
Thanks :+1:
This is true only for enum cases but not the enums themselves.