Metadata::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 3
1
<?php
2
3
/*
4
 * This file is part of the CMS Kernel package.
5
 *
6
 * Copyright (c) 2016-present LIN3S <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace LIN3S\CMSKernel\Domain\Model\Seo;
13
14
/**
15
 * @author Beñat Espiña <[email protected]>
16
 */
17
class Metadata
18
{
19
    private $title;
20
    private $description;
21
    private $robots;
22
23
    public function __construct(MetaTitle $title, MetaDescription $description, MetaRobots $robots)
24
    {
25
        $this->title = $title;
26
        $this->description = $description;
27
        $this->robots = $robots;
28
    }
29
30
    public function title()
31
    {
32
        return $this->title;
33
    }
34
35
    public function description()
36
    {
37
        return $this->description;
38
    }
39
40
    public function robots()
41
    {
42
        return $this->robots;
43
    }
44
}
45