1
0
mirror of https://github.com/danog/amp.git synced 2024-12-11 17:09:40 +01:00
amp/stubs/ReflectionFiber.php

50 lines
1.3 KiB
PHP
Raw Normal View History

2020-11-21 07:18:14 +01:00
<?php
class ReflectionFiber
2020-11-21 07:18:14 +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 { }
/**
* @return int Current line of fiber execution.
*/
2020-11-21 07:18:14 +01:00
public function getExecutingLine(): int { }
/**
* @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-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-11-21 07:18:14 +01:00
public function isSuspended(): bool { }
/**
2020-12-16 05:17:49 +01:00
* @return bool True if the fiber is currently running.
*/
2020-11-21 07:18:14 +01:00
public function isRunning(): bool { }
/**
* @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 { }
}