Total Complexity | 2 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class WishlistTokenValueAwareInputCommandDataTransformer implements CommandDataTransformerInterface |
||
13 | { |
||
14 | /** |
||
15 | * @param WishlistTokenValueAwareInterface|mixed $object |
||
16 | */ |
||
17 | public function transform($object, string $to, array $context = []): WishlistTokenValueAwareInterface |
||
18 | { |
||
19 | /** @var WishlistInterface $wishlist */ |
||
20 | $wishlist = $context[AbstractItemNormalizer::OBJECT_TO_POPULATE]; |
||
21 | |||
22 | $object->setWishlist($wishlist); |
||
23 | |||
24 | return $object; |
||
25 | } |
||
26 | |||
27 | public function supportsTransformation($object): bool |
||
30 | } |
||
31 | } |
||
32 |