Вход Регистрация
Файл: src/vendor/mockery/mockery/library/Mockery/Generator/Method.php
Строк: 18
<?php

namespace MockeryGenerator;

class 
Method
{
    private 
$method;

    public function 
__construct(ReflectionMethod $method)
    {
        
$this->method $method;
    }

    public function 
__call($method$args)
    {
        return 
call_user_func_array(array($this->method$method), $args);
    }

    public function 
getParameters()
    {
        return 
array_map(function ($parameter) {
            return new 
Parameter($parameter);
        }, 
$this->method->getParameters());
    }
}
Онлайн: 2
Реклама