OfferGroupTrait::setGroupId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 1
dl 0
loc 5
rs 10
1
<?php
2
3
/*
4
 * This file is part of the Bukashk0zzzYmlGenerator package.
5
 *
6
 * (c) Gennady Knyazkin <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Bukashk0zzz\YmlGenerator\Model\Offer;
13
14
/**
15
 * Trait OfferGroupTrait
16
 */
17
trait OfferGroupTrait
18
{
19
    /**
20
     * @var int
21
     */
22
    protected $groupId;
23
24
    /**
25
     * Get groupId
26
     *
27
     * @return int|null
28
     */
29
    public function getGroupId()
30
    {
31
        return $this->groupId;
32
    }
33
34
    /**
35
     * Set groupId
36
     *
37
     * @param int $groupId
38
     *
39
     * @return $this
40
     */
41
    public function setGroupId($groupId)
42
    {
43
        $this->groupId = $groupId;
44
45
        return $this;
46
    }
47
}
48