1 | <?php |
||
18 | class TraitIntroductionInfo implements IntroductionInfo |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * List of interfaces to introduce |
||
23 | * |
||
24 | * @var array |
||
25 | */ |
||
26 | private $introducedInterfaces; |
||
27 | |||
28 | /** |
||
29 | * List of traits to include |
||
30 | * |
||
31 | * @var array |
||
32 | */ |
||
33 | private $introducedTraits; |
||
34 | |||
35 | /** |
||
36 | * Create a DefaultIntroductionAdvisor for the given advice. |
||
37 | * |
||
38 | * @param string|string[] $introducedInterfaces List of introduced interfaces |
||
39 | * @param string|string[] $introducedTraits List of introduced traits |
||
40 | */ |
||
41 | public function __construct($introducedInterfaces, $introducedTraits) |
||
46 | |||
47 | /** |
||
48 | * Return the additional interfaces introduced by this Advisor or Advice. |
||
49 | * |
||
50 | * @return array|string[] introduced interfaces |
||
51 | */ |
||
52 | public function getInterfaces() |
||
56 | |||
57 | /** |
||
58 | * Return the list of traits with realization of introduced interfaces |
||
59 | * |
||
60 | * @return array|string[] trait implementations |
||
61 | */ |
||
62 | public function getTraits() |
||
66 | } |
||
67 |