Content   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 15
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A update() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Ivoaz ContentEditable bundle.
5
 *
6
 * (c) Ivo Azirjans <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace Ivoaz\Bundle\ContentEditableBundle\Form\Model;
13
14
/**
15
 * @author Ivo Azirjans <[email protected]>
16
 */
17
class Content
18
{
19
    /**
20
     * @var string
21
     */
22
    public $text;
23
24
    /**
25
     * @param \Ivoaz\Bundle\ContentEditableBundle\Model\Content $content
26
     */
27 2
    public function update(\Ivoaz\Bundle\ContentEditableBundle\Model\Content $content)
28
    {
29 2
        $content->setText($this->text);
30 2
    }
31
}
32