GroupMessage   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 29
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getGroup() 0 4 1
A setGroup() 0 4 1
1
<?php
2
/*
3
 * This file is part of the slince/smartqq package.
4
 *
5
 * (c) Slince <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Slince\SmartQQ\Message\Request;
12
13
use Slince\SmartQQ\Entity\Group;
14
15
class GroupMessage extends Message
16
{
17
    /**
18
     * @var Group
19
     */
20
    protected $group;
21
22
    public function __construct(Group $group, $content)
23
    {
24
        $this->group = $group;
25
        parent::__construct($content);
26
    }
27
28
    /**
29
     * @return Group
30
     */
31
    public function getGroup()
32
    {
33
        return $this->group;
34
    }
35
36
    /**
37
     * @param Group $group
38
     */
39
    public function setGroup($group)
40
    {
41
        $this->group = $group;
42
    }
43
}
44