Completed
Push — master ( 4e5e31...e8f514 )
by Matt
02:38
created

base   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 41
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A is_available() 0 4 1
A set_text() 0 5 1
A get_name() 0 4 1
A set_name() 0 4 1
1
<?php
2
/**
3
 *
4
 * Topic Preview
5
 *
6
 * @copyright (c) 2016 Matt Friedman
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
11
namespace vse\topicpreview\core\trim\tools;
12
13
abstract class base implements tool_interface
14
{
15
	/** @var string Name of tool */
16
	protected $name;
17
18
	/** @var string The text to parse */
19
	protected $text;
20
21
	/**
22
	 * @inheritdoc
23
	 */
24
	public function is_available()
25
	{
26
		return true;
27
	}
28
29
	/**
30
	 * @inheritdoc
31
	 */
32
	public function set_text($text)
33
	{
34
		$this->text = $text;
35
		return $this;
36
	}
37
38
	/**
39
	 * @inheritdoc
40
	 */
41
	public function get_name()
42
	{
43
		return $this->name;
44
	}
45
46
	/**
47
	 * @inheritdoc
48
	 */
49
	public function set_name($name)
50
	{
51
		$this->name = $name;
52
	}
53
}
54