| 1 | <?php |
||
| 20 | abstract class AbstractGenericAdvisor implements Advisor |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Instance of advice |
||
| 24 | * |
||
| 25 | * @var Advice |
||
| 26 | */ |
||
| 27 | protected $advice; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Initializes an advisor with advice |
||
| 31 | * |
||
| 32 | * @param Advice $advice Advice to apply |
||
| 33 | */ |
||
| 34 | 2 | public function __construct(Advice $advice) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * Returns an advice to apply |
||
| 41 | */ |
||
| 42 | 2 | public function getAdvice(): Advice |
|
| 46 | } |
||
| 47 |