2020-11-21 07:18:14 +01:00
|
|
|
<?php
|
|
|
|
|
2020-12-09 18:22:47 +01:00
|
|
|
class ReflectionFiber
|
2020-11-21 07:18:14 +01:00
|
|
|
{
|
2020-12-09 18:22:47 +01:00
|
|
|
/**
|
|
|
|
* @param Fiber $fiber Any Fiber object, including those that are not started or have
|
|
|
|
* terminated.
|
|
|
|
*/
|
|
|
|
public function __construct(Fiber $fiber) { }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string Current file of fiber execution.
|
|
|
|
*/
|
2020-11-21 07:18:14 +01:00
|
|
|
public function getExecutingFile(): string { }
|
|
|
|
|
2020-12-09 18:22:47 +01:00
|
|
|
/**
|
|
|
|
* @return int Current line of fiber execution.
|
|
|
|
*/
|
2020-11-21 07:18:14 +01:00
|
|
|
public function getExecutingLine(): int { }
|
|
|
|
|
2020-12-09 18:22:47 +01:00
|
|
|
/**
|
|
|
|
* @param int $options Same flags as {@see debug_backtrace()}.
|
|
|
|
*
|
|
|
|
* @return array Fiber backtrace, similar to {@see debug_backtrace()}
|
|
|
|
* and {@see ReflectionGenerator::getTrace()}.
|
|
|
|
*/
|
2020-11-21 07:18:14 +01:00
|
|
|
public function getTrace(int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT): array { }
|
|
|
|
|
2020-12-09 18:22:47 +01:00
|
|
|
/**
|
2020-12-16 05:17:49 +01:00
|
|
|
* @return bool True if the fiber has been started.
|
|
|
|
*/
|
|
|
|
public function isStarted(): bool { }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return bool True if the fiber is currently suspended.
|
2020-12-09 18:22:47 +01:00
|
|
|
*/
|
2020-11-21 07:18:14 +01:00
|
|
|
public function isSuspended(): bool { }
|
|
|
|
|
2020-12-09 18:22:47 +01:00
|
|
|
/**
|
2020-12-16 05:17:49 +01:00
|
|
|
* @return bool True if the fiber is currently running.
|
2020-12-09 18:22:47 +01:00
|
|
|
*/
|
2020-11-21 07:18:14 +01:00
|
|
|
public function isRunning(): bool { }
|
|
|
|
|
2020-12-09 18:22:47 +01:00
|
|
|
/**
|
|
|
|
* @return bool True if the fiber has completed execution (either returning or
|
|
|
|
* throwing an exception), false otherwise.
|
|
|
|
*/
|
2020-11-21 07:18:14 +01:00
|
|
|
public function isTerminated(): bool { }
|
|
|
|
}
|