Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4100392
Is.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
941 B
Referenced Files
None
Subscribers
None
Is.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
GuzzleHttp\Promise
;
final
class
Is
{
/**
* Returns true if a promise is pending.
*/
public
static
function
pending
(
PromiseInterface
$promise
):
bool
{
return
$promise
->
getState
()
===
PromiseInterface
::
PENDING
;
}
/**
* Returns true if a promise is fulfilled or rejected.
*/
public
static
function
settled
(
PromiseInterface
$promise
):
bool
{
return
$promise
->
getState
()
!==
PromiseInterface
::
PENDING
;
}
/**
* Returns true if a promise is fulfilled.
*/
public
static
function
fulfilled
(
PromiseInterface
$promise
):
bool
{
return
$promise
->
getState
()
===
PromiseInterface
::
FULFILLED
;
}
/**
* Returns true if a promise is rejected.
*/
public
static
function
rejected
(
PromiseInterface
$promise
):
bool
{
return
$promise
->
getState
()
===
PromiseInterface
::
REJECTED
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Aug 18, 16:22 (3 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
28/94/2d59333bfb63e350ca90dfbfabf0
Default Alt Text
Is.php (941 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment