| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class TypeClosure implements CastInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var \Closure |
||
| 9 | */ |
||
| 10 | protected $closure; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param \Closure $closure |
||
| 14 | */ |
||
| 15 | public function __construct(\Closure $closure) |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param $value |
||
| 22 | * |
||
| 23 | * @return mixed |
||
| 24 | */ |
||
| 25 | public function cast($value) |
||
| 30 |