Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- trait A
- {
- function __get($name)
- {
- }
- }
- trait B
- {
- function __get($name)
- {
- }
- }
- trait C
- {
- function __get($name)
- {
- }
- }
- class C
- {
- use A, B, C;
- function __get($name)
- {
- // it may also have magic method
- }
- }
- class D
- {
- use A, B, C {
- A::__get as private __getA;
- B::__get as private __getB;
- C::__get as private __getC;
- }
- function __get($name)
- {
- $this->__getA($name);
- $this->__getB($name);
- $this->__getC($name);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement