| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 19 | public function getPrice() |
||
| 20 | {
|
||
| 21 | if( $parameterName = $this->owner->getBasketParameter() ) |
||
| 22 | {
|
||
| 23 | if( $this->owner->getCollectionItems($this->basketParameterKey) ) |
||
| 24 | return $this->owner->getCollectionItemSum($this->basketParameterKey); |
||
| 25 | |||
| 26 | return $parameterName->getParameter()->price; |
||
| 27 | } |
||
| 28 | |||
| 29 | return $this->owner->getAttribute('price');
|
||
| 30 | } |
||
| 31 | |||
| 39 | } |