Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1431118
TypeMatcher.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
468 B
Referenced Files
None
Subscribers
None
TypeMatcher.php
View Options
<?php
namespace
DeepCopy\TypeMatcher
;
class
TypeMatcher
{
/**
* @var string
*/
private
$type
;
/**
* @param string $type
*/
public
function
__construct
(
$type
)
{
$this
->
type
=
$type
;
}
/**
* @param mixed $element
*
* @return boolean
*/
public
function
matches
(
$element
)
{
return
is_object
(
$element
)
?
is_a
(
$element
,
$this
->
type
)
:
gettype
(
$element
)
===
$this
->
type
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 20:06 (3 h, 11 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c5/ad/24d2843a4d37b56fe7dd48b3d1d3
Default Alt Text
TypeMatcher.php (468 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment