1 | <?php |
||
24 | final class ProductReviewContext implements Context |
||
25 | { |
||
26 | /** |
||
27 | * @var SharedStorageInterface |
||
28 | */ |
||
29 | private $sharedStorage; |
||
30 | |||
31 | /** |
||
32 | * @var FactoryInterface |
||
33 | */ |
||
34 | private $productReviewFactory; |
||
35 | |||
36 | /** |
||
37 | * @var RepositoryInterface |
||
38 | */ |
||
39 | private $productReviewRepository; |
||
40 | |||
41 | /** |
||
42 | * @param SharedStorageInterface $sharedStorage |
||
43 | * @param FactoryInterface $productReviewFactory |
||
44 | * @param RepositoryInterface $productReviewRepository |
||
45 | */ |
||
46 | public function __construct( |
||
55 | |||
56 | /** |
||
57 | * @Given /^(this product) has one review$/ |
||
58 | */ |
||
59 | public function productHasAReview(ProductInterface $product) |
||
70 | } |
||
71 |