Completed
Push — master ( 926e5e...2f974b )
by Daniel
21:21
created

block::get_name()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 *
4
 * @package sitemaker
5
 * @copyright (c) 2013 Daniel A. (blitze)
6
 * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
7
 *
8
 */
9
10
namespace blitze\sitemaker\services\blocks\driver;
11
12
use blitze\sitemaker\services\blocks\driver\block_interface;
13
14
/**
15
 * Base class for block drivers
16
 * @package sitemaker
17
 */
18
abstract class block implements block_interface
19
{
20
	/**
21
	 * Block name
22
	 * @var string
23
	 */
24
	protected $name;
25
26
	/**
27
	 * Template object for Sitemaker blocks
28
	 * @var \blitze\sitemaker\services\template
29
	 */
30
	protected $ptemplate;
31
32
	/**
33
	 * Set block template object
34
	 *
35
	 * @param \phpbb\template\template	$ptemplate	Template object
36
	 */
37 87
	public function set_template(\blitze\sitemaker\services\template $ptemplate)
38
	{
39 87
		$this->ptemplate = $ptemplate;
40 87
	}
41
42
	/**
43
	 * @inheritdoc
44
	 */
45 2
	public function get_name()
46
	{
47 2
		return $this->name;
48
	}
49
50
	/**
51
	 * {@inheritdoc}
52
	 */
53 3
	public function set_name($name)
54
	{
55 3
		$this->name = $name;
56 3
	}
57
58
	/**
59
	 * {@inheritdoc}
60
	 */
61 5
	public function get_config(array $settings)
62
	{
63 5
		return array();
64
	}
65
}
66