Completed
Push — fetcher_factories ( 10a56f...fd93ea )
by David
13:44
created

Title   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getTitle() 0 4 1
1
<?php
2
3
namespace Mouf\Mvc\Splash\Annotations;
4
5
/**
6
 * @Annotation
7
 * @Target({"METHOD"})
8
 * @Attributes({
9
 *   @Attribute("value", type = "string")
10
 * })
11
 */
12
class Title
13
{
14
    /**
15
     * @var string
16
     */
17
    private $title;
18
19
    public function __construct(array $values)
20
    {
21
        $this->title = $values['value'];
22
    }
23
24
    /**
25
     * @return string
26
     */
27
    public function getTitle()
28
    {
29
        return $this->title;
30
    }
31
}
32