| 1 | <?php |
||
| 20 | class Product |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var CatalogModeConfigProviderInterface |
||
| 24 | */ |
||
| 25 | private $catalogModeConfigProvider; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Product constructor. |
||
| 29 | * @param CatalogModeConfigProviderInterface $catalogModeConfigProvider |
||
| 30 | */ |
||
| 31 | public function __construct(CatalogModeConfigProviderInterface $catalogModeConfigProvider) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param ProductModel $subject |
||
| 38 | * @param bool $result |
||
| 39 | * @return bool |
||
| 40 | */ |
||
| 41 | public function afterIsSalable(ProductModel $subject, bool $result) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @param ProductModel $subject |
||
| 48 | * @param bool $result |
||
| 49 | * @return bool |
||
| 50 | */ |
||
| 51 | public function afterGetIsSalable(ProductModel $subject, bool $result) |
||
| 55 | } |
||
| 56 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.