AbstractContentTypeCreator   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 29
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getDefaultTemplate() 0 4 1
1
<?php
2
/**
3
 * Lichtenwallner  (https://lichtenwallner.at)
4
 *
5
 * @see https://github.com/jolicht/markdown-cms for the canonical source repository
6
 * @license https://github.com/jolicht/markdown-cms/blob/master/LICENSE MIT
7
 * @copyright Copyright (c) Johannes Lichtenwallner
8
 */
9
declare(strict_types = 1);
10
namespace Jolicht\MarkdownCms\ContentType;
11
12
abstract class AbstractContentTypeCreator
13
{
14
    /**
15
     * Default template
16
     *
17
     * @var string
18
     */
19
    private $defaultTemplate;
20
21
    /**
22
     * Constructor
23
     *
24
     * @param string $defaultTemplate
25
     */
26
    public function __construct(string $defaultTemplate)
27
    {
28
        $this->defaultTemplate = $defaultTemplate;
29
    }
30
31
    /**
32
     * Get default template
33
     *
34
     * @return string
35
     */
36
    public function getDefaultTemplate() : string
37
    {
38
        return $this->defaultTemplate;
39
    }
40
}