Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4184126
FiberCaster.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
FiberCaster.php
View Options
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace
Symfony\Component\VarDumper\Caster
;
use
Symfony\Component\VarDumper\Cloner\Stub
;
/**
* Casts Fiber related classes to array representation.
*
* @author Grégoire Pineau <lyrixx@lyrixx.info>
*/
final
class
FiberCaster
{
public
static
function
castFiber
(
\Fiber
$fiber
,
array
$a
,
Stub
$stub
,
bool
$isNested
,
int
$filter
=
0
):
array
{
$prefix
=
Caster
::
PREFIX_VIRTUAL
;
if
(
$fiber
->
isTerminated
())
{
$status
=
'terminated'
;
}
elseif
(
$fiber
->
isRunning
())
{
$status
=
'running'
;
}
elseif
(
$fiber
->
isSuspended
())
{
$status
=
'suspended'
;
}
elseif
(
$fiber
->
isStarted
())
{
$status
=
'started'
;
}
else
{
$status
=
'not started'
;
}
$a
[
$prefix
.
'status'
]
=
$status
;
return
$a
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 20 2026, 14:28 (11 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
82/d5/51e7f8976a37e8d200abe6d33e0f
Default Alt Text
FiberCaster.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment