ReplyMessage   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getThread() 0 4 1
A setThread() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the MilioooMessageBundle package.
5
 *
6
 * (c) Michiel boeckaert <[email protected]>
7
 * This source file is subject to the MIT license that is bundled
8
 * with this source code in the file LICENSE.
9
 */
10
11
namespace Miliooo\Messaging\Form\FormModel;
12
13
use Miliooo\Messaging\Model\ThreadInterface;
14
15
/**
16
 * Implementation of the ReplyMessageInterface.
17
 *
18
 * @author Michiel Boeckaert <[email protected]>
19
 */
20
class ReplyMessage extends AbstractNewMessage implements ReplyMessageInterface
21
{
22
    /**
23
     * The thread we reply to
24
     *
25
     * @var ThreadInterface
26
     */
27
    protected $thread;
28
29
    /**
30
     * {@inheritdoc}
31
     */
32
    public function getThread()
33
    {
34
        return $this->thread;
35
    }
36
37
    /**
38
     * {@inheritdoc}
39
     */
40
    public function setThread(ThreadInterface $thread)
41
    {
42
        $this->thread = $thread;
43
    }
44
}
45