| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | abstract class AbstractRecipeDecorator implements RecipeInterface |
||
| 14 | { |
||
| 15 | use RecipeTrait; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var RecipeInterface |
||
| 19 | */ |
||
| 20 | protected $recipe; |
||
| 21 | protected $option; |
||
| 22 | |||
| 23 | 4 | public function __construct(RecipeInterface $recipe) |
|
| 26 | 4 | } |
|
| 27 | |||
| 28 | /** |
||
| 29 | * Decorates provided recipe. |
||
| 30 | * |
||
| 31 | * @param RecipeInterface $recipe The inner recipe. |
||
| 32 | * @return AbstractRecipeDecorator A new recipe with decorated behavior |
||
| 33 | */ |
||
| 34 | 4 | public static function decorate(RecipeInterface $recipe): self |
|
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Option setter |
||
| 41 | * |
||
| 42 | * @param mixed $option The option value. |
||
| 43 | * @return AbstractRecipeDecorator |
||
| 44 | */ |
||
| 45 | 2 | public function setOption($option): self |
|
| 51 |