Offer::getPrice()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 4
Bugs 2 Features 0
Metric Value
c 4
b 2
f 0
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
/**
4
 * @author Serkin Alexander <[email protected]>
5
 * @license https://github.com/serkin/ymlparser/LICENSE MIT
6
 */
7
8
namespace YMLParser\Node;
9
10
class Offer extends \ArrayObject {
11
12
    /**
13
     * Ges price.
14
     *
15
     * @param string $currency
16
     *
17
     * @return integer
18
     */
19
    public function getPrice($currency = 'RUR') {
0 ignored issues
show
Unused Code introduced by
The parameter $currency is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
20
        return 0;
21
    }
22
23
}
24