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

PropertiesDocs::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 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