ChangeStoreDetailsType   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 41
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getHash() 0 3 1
A __construct() 0 4 1
A setHash() 0 5 1
1
<?php
2
3
/*
4
 * This file is part of PHP CS Fixer.
5
 *
6
 * (c) Fabien Potencier <[email protected]>
7
 *     Dariusz Rumiński <[email protected]>
8
 *
9
 * This source file is subject to the MIT license that is bundled
10
 * with this source code in the file LICENSE.
11
 */
12
13
namespace Etrias\PaazlConnector\SoapTypes;
14
15
class ChangeStoreDetailsType extends StoreDetailsType
16
{
17
    /**
18
     * @var string
19
     */
20
    protected $hash = null;
21
22
    /**
23
     * Constructor.
24
     *
25
     * @param string                 $hash
26
     * @param string                 $code
27
     * @param string                 $name
28
     * @param AddressType            $address
29
     * @param coordinatesType|null   $coordinates
30
     * @param businessHoursType|null $businessHours
31
     */
32
    public function __construct($hash, $code, $name, AddressType $address, coordinatesType $coordinates = null, businessHoursType $businessHours = null)
0 ignored issues
show
Unused Code introduced by
The parameter $businessHours is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

32
    public function __construct($hash, $code, $name, AddressType $address, coordinatesType $coordinates = null, /** @scrutinizer ignore-unused */ businessHoursType $businessHours = null)

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

Loading history...
33
    {
34
        parent::__construct($code, $name, $address, $coordinates = null, $businessHours = null);
35
        $this->hash = $hash;
36
    }
37
38
    /**
39
     * @return string
40
     */
41
    public function getHash()
42
    {
43
        return $this->hash;
44
    }
45
46
    /**
47
     * @param string $hash
48
     *
49
     * @return $this
50
     */
51
    public function setHash($hash)
52
    {
53
        $this->hash = $hash;
54
55
        return $this;
56
    }
57
}
58