PHP 8.2.30
Preview: traits.php Size: 273 B
/opt/alt/php53/usr/share/pear/test/ClassLoader/Symfony/Component/ClassLoader/Tests/Fixtures/php5.4/traits.php

<?php
namespace {
    trait TFoo
    {
    }

    class CFoo
    {
        use TFoo;
    }
}

namespace Foo {
    trait TBar
    {
    }

    interface IBar
    {
    }

    trait TFooBar
    {
    }

    class CBar implements IBar
    {
        use TBar, TFooBar;
    }
}

Directory Contents

Dirs: 0 × Files: 1

Name Size Perms Modified Actions
273 B lrw-r--r-- 2019-12-18 11:20:40
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).