Offer   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 4
Bugs 2 Features 0
Metric Value
c 4
b 2
f 0
dl 0
loc 14
wmc 1
lcom 0
cbo 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getPrice() 0 3 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