Completed
Push — master ( 6e2aaf...388511 )
by Bukashk0zzz
14s
created

OfferGroupTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 31
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getGroupId() 0 4 1
A setGroupId() 0 6 1
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
 * @author Gennady Knyazkin <[email protected]>
18
 */
19
trait OfferGroupTrait
20
{
21
    /**
22
     * @var int
23
     */
24
    protected $groupId;
25
26
    /**
27
     * Get groupId
28
     *
29
     * @return int|null
30
     */
31
    public function getGroupId()
32
    {
33
        return $this->groupId;
34
    }
35
36
    /**
37
     * Set groupId
38
     *
39
     * @param int $groupId
40
     *
41
     * @return $this
42
     */
43
    public function setGroupId($groupId)
44
    {
45
        $this->groupId = $groupId;
46
47
        return $this;
48
    }
49
}
50