| 1 | <?php |
||
| 19 | class TraitIntroductionInfo implements IntroductionInfo |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Introduced interface |
||
| 23 | * |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | private $introducedInterface; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Trait to use |
||
| 30 | * |
||
| 31 | * @var string |
||
| 32 | */ |
||
| 33 | private $introducedTrait; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Create a DefaultIntroductionAdvisor for the given advice. |
||
| 37 | * |
||
| 38 | * @param string $introducedTrait Introduced trait |
||
| 39 | * @param string $introducedInterface Introduced interface |
||
| 40 | */ |
||
| 41 | public function __construct(string $introducedTrait, string $introducedInterface) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Returns the additional interface introduced by this Advisor or Advice. |
||
| 49 | */ |
||
| 50 | public function getInterface(): string |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Returns the additional trait with realization of introduced interface |
||
| 57 | */ |
||
| 58 | public function getTrait(): string |
||
| 62 | } |
||
| 63 |