| Total Complexity | 1 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | class Post implements RequestValidatorInterface, ProductPostRequestValidatorInterface |
||
| 22 | { |
||
| 23 | use ValidatorTrait; |
||
|
|
|||
| 24 | |||
| 25 | private $response; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Post constructor. |
||
| 29 | * @param DecoratorInterface $response |
||
| 30 | * Although applying inversion of control adds more coupling to a D.I Framework from a design point of view it's better |
||
| 31 | * and it's actually the rule of dumb, even when injecting a Dto based component. |
||
| 32 | */ |
||
| 33 | public function __construct(DecoratorInterface $response) |
||
| 38 |