1 | <?php |
||
36 | class Config extends ContainerConfig |
||
37 | { |
||
38 | /** |
||
39 | * Rules |
||
40 | * |
||
41 | * @var array |
||
42 | * |
||
43 | * @access protected |
||
44 | */ |
||
45 | protected $rules = []; |
||
46 | |||
47 | /** |
||
48 | * __construct |
||
49 | * |
||
50 | * @param array $rules Map of rules |
||
51 | * |
||
52 | * @access public |
||
53 | */ |
||
54 | 3 | public function __construct(array $rules = null) |
|
60 | |||
61 | /** |
||
62 | * SetRules |
||
63 | * |
||
64 | * @param array $rules Map of rules |
||
65 | * |
||
66 | * @return mixed |
||
67 | * |
||
68 | * @access public |
||
69 | */ |
||
70 | 3 | public function setRules(array $rules) |
|
75 | |||
76 | /** |
||
77 | * Define |
||
78 | * |
||
79 | * @param Container $di DI Container |
||
80 | * |
||
81 | * @return void |
||
82 | * |
||
83 | * @access public |
||
84 | * |
||
85 | * @SuppressWarnings(PHPMD.ShortVariable) |
||
86 | */ |
||
87 | 3 | public function define(Container $di) |
|
97 | } |
||
98 |