Completed
Push — master ( 2924c2...10d628 )
by Peter
24:00
created

MethodsDocs   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A __toString() 0 4 1
1
<?php
2
3
/**
4
 * This software package is licensed under `AGPL, Commercial` license[s].
5
 *
6
 * @package maslosoft/zamm
7
 * @license AGPL, Commercial
8
 *
9
 * @copyright Copyright (c) Peter Maselkowski <[email protected]>
10
 * @link https://maslosoft.com/zamm/
11
 */
12
13
namespace Maslosoft\Zamm\Widgets;
14
15
use Maslosoft\MiniView\MiniView;
16
17
/**
18
 * This will display HTML table containing documentation
19
 * for all pubic methods of a class.
20
 *
21
 * @author Piotr Maselkowski <pmaselkowski at gmail.com>
22
 */
23
class MethodsDocs extends AbstractWidget
24
{
25
	/**
26
	 * Provide title to display above this widget's
27
	 * generated table.
28
	 *
29
	 * @var string
30
	 */
31
	public $title = '';
32
	private $class = null;
33
34
	public function __construct($class)
35
	{
36
		$this->class = $class;
37
	}
38
39
	public function __toString()
40
	{
41
		return $this->render('methods-docs', ['class' => $this->class]) . "\n\n";
42
	}
43
44
}
45