turnaev /
monitor-bundle
| 1 | <?php |
||
| 2 | |||
| 3 | /** |
||
| 4 | * This file is part of the `tvi/monitor-bundle` project. |
||
| 5 | * |
||
| 6 | * (c) https://github.com/turnaev/monitor-bundle/graphs/contributors |
||
| 7 | * |
||
| 8 | * For the full copyright and license information, please view the LICENSE.md |
||
| 9 | * file that was distributed with this source code. |
||
| 10 | */ |
||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 11 | |||
| 12 | namespace Tvi\MonitorBundle\Check; |
||
| 13 | |||
| 14 | /** |
||
|
0 ignored issues
–
show
|
|||
| 15 | * @author Vladimir Turnaev <[email protected]> |
||
| 16 | */ |
||
|
0 ignored issues
–
show
|
|||
| 17 | class Proxy |
||
| 18 | { |
||
| 19 | /** |
||
|
0 ignored issues
–
show
|
|||
| 20 | * @var \Closure |
||
| 21 | */ |
||
| 22 | protected $producer; |
||
| 23 | |||
| 24 | 139 | public function __construct(\Closure $producer) |
|
|
0 ignored issues
–
show
|
|||
| 25 | { |
||
| 26 | 139 | $this->producer = $producer; |
|
| 27 | 139 | } |
|
| 28 | |||
| 29 | /** |
||
|
0 ignored issues
–
show
|
|||
| 30 | * @return CheckInterface |
||
| 31 | */ |
||
| 32 | 116 | public function __invoke() |
|
| 33 | { |
||
| 34 | 116 | return ($this->producer)(); |
|
| 35 | } |
||
| 36 | } |
||
| 37 |