We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9939df8 commit 2d4fe94Copy full SHA for 2d4fe94
1 file changed
code_samples/pim/availability/src/ProductAvailabilityPurchasableWithoutStockStrategy.php
@@ -9,13 +9,10 @@
9
use Ibexa\ProductCatalog\Local\Persistence\Legacy\ProductAvailability\HandlerInterface;
10
use Ibexa\ProductCatalog\Local\Repository\Values\Availability;
11
12
-final class ProductAvailabilityPurchasableWithoutStockStrategy implements ProductAvailabilityStrategyInterface
+final readonly class ProductAvailabilityPurchasableWithoutStockStrategy implements ProductAvailabilityStrategyInterface
13
{
14
- private HandlerInterface $handler;
15
-
16
- public function __construct(HandlerInterface $handler)
+ public function __construct(private HandlerInterface $handler)
17
18
- $this->handler = $handler;
19
}
20
21
public function accept(AvailabilityContextInterface $context): bool
0 commit comments