1 | <?php |
||
20 | class MethodCall |
||
21 | { |
||
22 | use NumericParameterTrait { |
||
23 | NumericParameterTrait::add as protected addMethod; |
||
24 | NumericParameterTrait::remove as protected removeMethod; |
||
25 | NumericParameterTrait::set as protected; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Clear and replace with sets of method call. |
||
30 | * |
||
31 | * @param array $calls |
||
32 | * |
||
33 | * @return static |
||
34 | */ |
||
35 | public function replace(array $calls) |
||
47 | |||
48 | /** |
||
49 | * Add method call. |
||
50 | * |
||
51 | * @param string $method |
||
52 | * @param array $arguments |
||
53 | * |
||
54 | * @return static |
||
55 | */ |
||
56 | public function add($method, array $arguments = array()) |
||
64 | |||
65 | /** |
||
66 | * Remove method call. |
||
67 | * |
||
68 | * @param int $method |
||
69 | * |
||
70 | * @return static |
||
71 | */ |
||
72 | public function remove($method) |
||
76 | |||
77 | /** |
||
78 | * Check if has method call. |
||
79 | * |
||
80 | * @param string $method |
||
81 | * |
||
82 | * @return bool |
||
83 | */ |
||
84 | public function has($method) |
||
88 | |||
89 | /** |
||
90 | * Get index of method. |
||
91 | * |
||
92 | * @param string $method |
||
93 | * |
||
94 | * @return int |
||
95 | */ |
||
96 | public function index($method) |
||
106 | } |
||
107 |