Page MenuHomeWickedGov Phorge

TypeMatcher.php
No OneTemporary

Size
468 B
Referenced Files
None
Subscribers
None

TypeMatcher.php

<?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

Mime Type
text/x-php
Expires
Sat, Nov 21, 21:25 (1 d, 15 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
1d/58/3372ff26597da8e3e6ebd06ef9a2
Default Alt Text
TypeMatcher.php (468 B)

Event Timeline