33 lines
286 B
PHP
33 lines
286 B
PHP
![]() |
<?php
|
||
|
|
||
|
namespace {
|
||
|
trait TFoo
|
||
|
{
|
||
|
}
|
||
|
|
||
|
class CFoo
|
||
|
{
|
||
|
use TFoo;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
namespace Foo {
|
||
|
trait TBar
|
||
|
{
|
||
|
}
|
||
|
|
||
|
interface IBar
|
||
|
{
|
||
|
}
|
||
|
|
||
|
trait TFooBar
|
||
|
{
|
||
|
}
|
||
|
|
||
|
class CBar implements IBar
|
||
|
{
|
||
|
use TBar;
|
||
|
use TFooBar;
|
||
|
}
|
||
|
}
|