Completed
Push — master ( 9391c4...3be88f )
by Peter
04:35
created

PropertiesDocs   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A __toString() 0 4 1
1
<?php
2
3
namespace Maslosoft\Zamm\Widgets;
4
5
use Maslosoft\MiniView\MiniView;
6
7
/**
8
 * This will display HTML table containing documentation
9
 * for all properties of a class.
10
 *
11
 * @author Piotr Maselkowski <pmaselkowski at gmail.com>
12
 */
13
class PropertiesDocs extends AbstractWidget
14
{
15
16
	private $class = null;
17
18
	public function __construct($class)
19
	{
20
		$this->class = $class;
21
	}
22
23
	public function __toString()
24
	{
25
		return $this->render('properties-docs', ['class' => $this->class]);
26
	}
27
28
}
29