1: <?php namespace Knot;
2:
3: /**
4: * Knot module.
5: *
6: * PHP version 5
7: *
8: * @category PHP
9: * @package Knot
10: * @author Ă–mer Kala <kalaomer@hotmail.com>
11: * @license https://raw.githubusercontent.com/kalaomer/knot/master/LICENSE.txt MIT licence
12: * @version GIT: 1.3 https://github.com/kalaomer/knot/
13: * @link https://kalaomer.github.com/knot/
14: */
15:
16: use Knot\Dict\AbstractDictBody;
17: use Knot\Dict\ParentDict;
18:
19: abstract class Dict extends AbstractDictBody {
20:
21: /**
22: * Version
23: */
24: const VERSION = "1.3";
25:
26:
27: /**
28: * Create Knot by reference.
29: *
30: * @param array &$data Knot data
31: *
32: * @return \Knot\Dict\ParentDict
33: */
34: public static function createByReference(array &$data)
35: {
36: return new ParentDict($data);
37: }
38:
39:
40: /**
41: * Create Knot without reference.
42: *
43: * @param array $data Knot data
44: *
45: * @return \Knot\Dict\ParentDict
46: */
47: public static function create($data)
48: {
49: return new ParentDict($data);
50: }
51: }
52: