Completed
Push — fetcher_factories ( ec83ea...40fc6e )
by David
08:11
created

Title::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 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