Passed
Push — master ( 94f60c...53efaf )
by Patrick
40s queued 11s
created

ProductStockStatusLanguageCollection::setData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Starweb\Api\Model\ProductStockStatus;
4
5
class ProductStockStatusLanguageCollection
6
{
7
    /**
8
     * A list of product stock statuses
9
     *
10
     * @var ProductStockStatusLanguage[]
11
     */
12
    protected $data;
13
14
    /**
15
     * A list of product stock statuses
16
     *
17
     * @return ProductStockStatus[]
18
     */
19
    public function getData(): array
20
    {
21
        return $this->data;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->data returns the type Starweb\Api\Model\Produc...ctStockStatusLanguage[] which is incompatible with the documented return type Starweb\Api\Model\Produc...us\ProductStockStatus[].
Loading history...
22
    }
23
24
    /**
25
     * A list of product stock statuses
26
     *
27
     * @param ProductStockStatusLanguage[]
28
     *
29
     * @return self
30
     */
31
    public function setData(array $data): self
32
    {
33
        $this->data = $data;
34
35
        return $this;
36
    }
37
}
38