Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
/**
4
 * Mockery
5
 *
6
 * LICENSE
7
 *
8
 * This source file is subject to the new BSD license that is bundled
9
 * with this package in the file LICENSE.txt.
10
 * It is also available through the world-wide-web at this URL:
11
 * http://github.com/padraic/mockery/blob/master/LICENSE
12
 * If you did not receive a copy of the license and are unable to
13
 * obtain it through the world-wide-web, please send an email
14
 * to padraic@php.net so we can send you a copy immediately.
15
 *
16
 * @category   Mockery
17
 * @package    Mockery
18
 * @copyright  Copyright (c) 2017 Dave Marshall https://github.com/davedevelopment
19
 * @license    http://github.com/padraic/mockery/blob/master/LICENSE New BSD License
20
 */
21
 
22
namespace Mockery;
23
 
24
use Mockery\Matcher\Closure;
25
 
26
/**
27
 * @internal
28
 */
29
class ClosureWrapper
30
{
31
    private $closure;
32
 
33
    public function __construct(\Closure $closure)
34
    {
35
        $this->closure = $closure;
36
    }
37
 
38
    public function __invoke()
39
    {
40
        return call_user_func_array($this->closure, func_get_args());
41
    }
42
}