Conditions | 3 |
Paths | 3 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
43 | public function process( \Aimeos\MShop\Coupon\Item\Code\Iface $item, array $data ) |
||
44 | { |
||
45 | $manager = \Aimeos\MShop\Factory::createManager( $this->getContext(), 'coupon/code' ); |
||
46 | $map = $this->getMappedChunk( $data, $this->getMapping() ); |
||
47 | |||
48 | foreach( $map as $list ) |
||
49 | { |
||
50 | if( $list['coupon.code.code'] == '' ) { |
||
51 | continue; |
||
52 | } |
||
53 | |||
54 | $item->fromArray( $list ); |
||
55 | $manager->saveItem( $item ); |
||
56 | } |
||
57 | |||
58 | return $this->getObject()->process( $item, $data ); |
||
59 | } |
||
60 | } |
||
61 |