Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7476010
Assertion.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
896 B
Referenced Files
None
Subscribers
None
Assertion.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Phan\Language\Element\Comment
;
use
Phan\Language\UnionType
;
/**
* Represents an assertion on a parameter type.
*
* @internal
* @phan-immutable
*/
class
Assertion
{
public
const
IS_OF_TYPE
=
1
;
public
const
IS_NOT_OF_TYPE
=
2
;
public
const
IS_TRUE
=
3
;
public
const
IS_FALSE
=
4
;
/** @var UnionType the type that is used in this assertion */
public
$union_type
;
/** @var string the parameter name that the assertion affects */
public
$param_name
;
/** @var 1|2|3|4 an enum self::IS_* */
public
$assertion_type
;
/**
* @param 1|2|3|4 $assertion_type
*/
public
function
__construct
(
UnionType
$union_type
,
string
$param_name
,
int
$assertion_type
)
{
$this
->
union_type
=
$union_type
;
$this
->
param_name
=
$param_name
;
$this
->
assertion_type
=
$assertion_type
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Nov 23, 10:10 (4 d, 12 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
dc/5c/79dce18050db4add1f4ac26e950c
Default Alt Text
Assertion.php (896 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment