| Total Complexity | 4 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class ClosureResult implements MapsProperty |
||
| 17 | { |
||
| 18 | private $property; |
||
| 19 | private $function; |
||
| 20 | |||
| 21 | private function __construct(string $property, Closure $function) |
||
| 22 | { |
||
| 23 | $this->property = $property; |
||
| 24 | $this->function = $function; |
||
| 25 | } |
||
| 26 | |||
| 27 | public static function inProperty(string $name, Closure $function) : MapsProperty |
||
| 30 | } |
||
| 31 | |||
| 32 | public function name() : string |
||
| 35 | } |
||
| 36 | |||
| 37 | public function value(array $data, $owner = null) |
||
| 42 |