You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
253 B
PHTML
29 lines
253 B
PHTML
13 years ago
|
<?php
|
||
|
namespace {
|
||
|
trait TFoo {
|
||
|
|
||
|
}
|
||
|
|
||
|
class CFoo {
|
||
|
use TFoo;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
namespace Foo {
|
||
|
trait TBar {
|
||
|
|
||
|
}
|
||
|
|
||
|
interface IBar {
|
||
|
|
||
|
}
|
||
|
|
||
|
trait TFooBar {
|
||
|
|
||
|
}
|
||
|
|
||
|
class CBar implements IBar {
|
||
|
use TBar, TFooBar;
|
||
|
}
|
||
|
}
|