1 | <?php |
||
34 | class MethodOverrideHelper |
||
35 | { |
||
36 | use MethodOverrideTrait; |
||
37 | |||
38 | /** |
||
39 | * Value with which to override method |
||
40 | * |
||
41 | * @var string |
||
42 | * |
||
43 | * @access protected |
||
44 | */ |
||
45 | protected $method; |
||
46 | |||
47 | /** |
||
48 | * __invoke |
||
49 | * |
||
50 | * @param string $method value to overide method |
||
51 | * |
||
52 | * @return $this |
||
53 | * |
||
54 | * @access public |
||
55 | */ |
||
56 | 1 | public function __invoke($method = null) |
|
63 | |||
64 | /** |
||
65 | * Set Method |
||
66 | * |
||
67 | * @param string $method value to override method |
||
68 | * |
||
69 | * @return mixed |
||
70 | * |
||
71 | * @access public |
||
72 | */ |
||
73 | 3 | public function setMethod($method) |
|
78 | |||
79 | /** |
||
80 | * Get Method |
||
81 | * |
||
82 | * @return null|string |
||
83 | * |
||
84 | * @access public |
||
85 | */ |
||
86 | 3 | public function getMethod() |
|
90 | |||
91 | /** |
||
92 | * Get Form Params |
||
93 | * |
||
94 | * Get array suitable for Aura\Html form input helper |
||
95 | * |
||
96 | * @return array |
||
97 | * |
||
98 | * @access public |
||
99 | */ |
||
100 | 2 | public function getFormParams() |
|
108 | |||
109 | /** |
||
110 | * __toString |
||
111 | * |
||
112 | * Get HTML string representing a hidden form input |
||
113 | * |
||
114 | * @return string |
||
115 | * |
||
116 | * @access public |
||
117 | */ |
||
118 | 2 | public function __toString() |
|
134 | } |
||
135 |