Metadata   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 28
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A title() 0 4 1
A description() 0 4 1
A robots() 0 4 1
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