123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <?php
- namespace mindplay\test\traits;
- trait AnotherSimpleTrait
- {
- /**
- * @note('another-simple-trait')
- */
- protected $sampleFromAnotherTrait = 'test';
- /**
- * @Note('another-simple-trait')
- */
- public function runFromAnotherTrait()
- {
- }
- }
- trait AliasBaseTrait
- {
- /**
- * @Note('alias-base-trait')
- */
- public function run()
- {
- }
- }
- trait AliasTrait
- {
- use \mindplay\test\traits\AliasBaseTrait {
- \mindplay\test\traits\AliasBaseTrait::run as baseTraitRun;
- }
- /**
- * @Note('alias-trait')
- */
- public function run()
- {
- }
- }
- trait InsteadofBaseTraitA
- {
- /**
- * @Note('insteadof-base-trait-a')
- */
- public function baseTrait()
- {
- }
- }
- trait InsteadofBaseTraitB
- {
- /**
- * @Note('insteadof-base-trait-b')
- */
- public function baseTrait()
- {
- }
- }
- trait InsteadofTraitA
- {
- use InsteadofBaseTraitA, InsteadofBaseTraitB {
- InsteadofBaseTraitA::baseTrait insteadof InsteadofBaseTraitB;
- }
- /**
- * @Note('insteadof-trait-a')
- */
- public function trate()
- {
- }
- }
- trait InsteadofTraitB
- {
- use InsteadofBaseTraitA, InsteadofBaseTraitB {
- InsteadofBaseTraitB::baseTrait insteadof InsteadofBaseTraitA;
- }
- /**
- * @Note('insteadof-trait-b')
- */
- public function trate()
- {
- }
- }
|