审查视图

simplewind/vendor/mindplay/annotations/test/suite/traits/property_conflict.php 1.2 KB
lihan authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
<?php

trait PropertyConflictTraitOne
{
    /**
     * @Note('property-conflict-trait-one')
     */
    protected $traitAndTraitAndParent = 1;

    /**
     * @Note('property-conflict-trait-one')
     */
    protected $unannotatedTraitAndAnnotatedTrait = 1;

    /**
     * @Note('property-conflict-trait-one')
     */
    protected $traitAndParentAndChild = 1;

    /**
     * @Note('property-conflict-trait-one')
     */
    protected $traitAndChild = 1;
}

trait PropertyConflictTraitTwo
{
    /**
     * @Note('property-conflict-trait-two')
     */
    protected $traitAndTraitAndParent = 1;

    protected $unannotatedTraitAndAnnotatedTrait = 1;
}

class PropertyConflictBaseTraitTester
{
    /**
     * @Note('property-conflict-base-trait-tester')
     */
    protected $traitAndTraitAndParent = 1;

    /**
     * @Note('property-conflict-base-trait-tester')
     */
    protected $traitAndParentAndChild = 1;
}


class PropertyConflictTraitTester extends PropertyConflictBaseTraitTester
{
    use PropertyConflictTraitTwo, PropertyConflictTraitOne;

    /**
     * @Note('property-conflict-trait-tester')
     */
    protected $traitAndChild = 1;

    /**
     * @Note('property-conflict-trait-tester')
     */
    protected $traitAndParentAndChild = 1;
}