| 1 | <?php |
||
| 21 | final class ProductReviewContext implements Context |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var RepositoryInterface |
||
| 25 | */ |
||
| 26 | private $productReviewRepository; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param RepositoryInterface $productReviewRepository |
||
| 30 | */ |
||
| 31 | public function __construct(RepositoryInterface $productReviewRepository) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @Transform :productReview |
||
| 38 | */ |
||
| 39 | public function getProductReviewByTitle($productReviewTitle) |
||
| 50 | } |
||
| 51 |
Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.