1: <?php
2:
3: namespace Mockery\Generator;
4:
5: class Method
6: {
7: private $method;
8:
9: public function __construct(\ReflectionMethod $method)
10: {
11: $this->method = $method;
12: }
13:
14: public function __call($method, $args)
15: {
16: return call_user_func_array(array($this->method, $method), $args);
17: }
18:
19: public function getParameters()
20: {
21: return array_map(function ($parameter) {
22: return new Parameter($parameter);
23: }, $this->method->getParameters());
24: }
25: }
26: