2012-03-21 11:57:50 +00:00
|
|
|
<?php
|
|
|
|
namespace {
|
|
|
|
trait TFoo {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-06-14 10:10:01 +00:00
|
|
|
class CFoo
|
|
|
|
{
|
2012-03-21 11:57:50 +00:00
|
|
|
use TFoo;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace Foo {
|
|
|
|
trait TBar {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IBar {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
trait TFooBar {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-06-14 10:10:01 +00:00
|
|
|
class CBar implements IBar
|
|
|
|
{
|
2012-03-21 11:57:50 +00:00
|
|
|
use TBar, TFooBar;
|
|
|
|
}
|
|
|
|
}
|