Completed
Push — master ( 140d69...7c6e46 )
by Pavel
03:56
created

PropertyAccessHelper   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getAccessor() 0 8 2
1
<?php
2
3
/**
4
 * @copyright   Copyright (c) 2015 ublaboo <[email protected]>
5
 * @author      Pavel Janda <[email protected]>
6
 * @package     Ublaboo
7
 */
8
9
namespace Ublaboo\DataGrid\Utils;
10
11
use Nette;
12
use Symfony\Component\PropertyAccess\PropertyAccess;
13
14
final class PropertyAccessHelper extends Nette\Object
15
{
16
17
	private static $accessor = NULL;
18
19
20
	public static function getAccessor()
21
	{
22
		if (!self::$accessor) {
23
			self::$accessor = PropertyAccess::createPropertyAccessor();
24
		}
25
26
		return self::$accessor;
27
	}
28
29
}
30