protected function setPrice(array &$data)
    {
        if (!empty($data['price']) && !empty($data['currency'])) {
            $data['price'] = $this->price->amount($data['price'], $data['currency']);
        }
    }
protected function setPrice(array &$data)
    {
        if (!empty($data['price']) && !empty($data['currency'])) {
            $data['price'] = $this->price->amount($data['price'], $data['currency']);
        }
    }
protected function setPrice ( array & $ data ) { if ( ! empty ( $ data [ 'price' ] ) && ! empty ( $ data [ 'currency' ] ) ) { $ data [ 'price' ] = $ this -> price -> amount ( $ data [ 'price' ] , $ data [ 'currency' ] ) ; } }
Converts a price value to minor units
@param array $data
Converts a price value to minor units