<?php class Route { private $target; public function getTarget() { return $this->target; } public function setTarget($target) { $this->target = $target; } } $route = new Route(); $route->setTarget( function(){}); $target = $route->getTarget(); if($target instanceof Closure) { echo 1; }else { echo 0; }
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`