/** * Scan function entry * * @param mixed $name The name of the function to reflect or a closure. * * @return self * @throws CallableNotFoundException */ public static function scan($name) { try { $fe = new \ReflectionFunction($name); } catch (\Exception $e) { throw Error::functionNotFound($name); } $info = new static(); $info->import($fe); return $info; }