mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-12-02 17:28:27 +01:00
25 lines
337 B
Plaintext
25 lines
337 B
Plaintext
|
Trait uses and adaptations
|
||
|
-----
|
||
|
<?php
|
||
|
|
||
|
class A
|
||
|
{
|
||
|
use B, C, D {
|
||
|
f as g;
|
||
|
f as private;
|
||
|
f as private g;
|
||
|
B::f as g;
|
||
|
B::f insteadof C, D;
|
||
|
}
|
||
|
}
|
||
|
-----
|
||
|
class A
|
||
|
{
|
||
|
use B, C, D {
|
||
|
f as g;
|
||
|
f as private;
|
||
|
f as private g;
|
||
|
B::f as g;
|
||
|
B::f insteadof C, D;
|
||
|
}
|
||
|
}
|