Вход Регистрация
Файл: symfony-2.7/src/Symfony/Component/ClassLoader/Tests/Fixtures/php5.4/traits.php
Строк: 5
<?php
namespace {
    trait 
TFoo
    
{
    }

    class 
CFoo
    
{
        use 
TFoo;
    }
}

namespace 
Foo {
    trait 
TBar
    
{
    }

    interface 
IBar
    
{
    }

    trait 
TFooBar
    
{
    }

    class 
CBar implements IBar
    
{
        use 
TBar;
        use 
TFooBar;
    }
}
Онлайн: 0
Реклама