phpdoc/Reflectors/ValueType.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>Reflectors\ValueType | Reflectors (atelierspierrot/reflectors)</title>
<link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="../css/bootstrap-theme.min.css">
<link rel="stylesheet" type="text/css" href="../css/sami.css">
<script src="../js/jquery-1.11.1.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/typeahead.min.js"></script>
<script src="../sami.js"></script>
<meta name="MobileOptimized" content="width">
<meta name="HandheldFriendly" content="true">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
</head>
<body id="class" data-name="class:Reflectors_ValueType" data-root-path="../">
<div id="content">
<div id="left-column">
<div id="control-panel">
<form id="search-form" action="../search.html" method="GET">
<span class="glyphicon glyphicon-search"></span>
<input name="search"
class="typeahead form-control"
type="search"
placeholder="Search">
</form>
</div>
<div id="api-tree"></div>
</div>
<div id="right-column">
<nav id="site-nav" class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-elements">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">Reflectors (atelierspierrot/reflectors)</a>
</div>
<div class="collapse navbar-collapse" id="navbar-elements">
<ul class="nav navbar-nav">
<li><a href="../classes.html">Classes</a></li>
<li><a href="../namespaces.html">Namespaces</a></li>
<li><a href="../interfaces.html">Interfaces</a></li>
<li><a href="../traits.html">Traits</a></li>
<li><a href="../doc-index.html">Index</a></li>
<li><a href="../search.html">Search</a></li>
</ul>
</div>
</div>
</nav>
<div class="namespace-breadcrumbs">
<ol class="breadcrumb">
<li><span class="label label-default">class</span></li>
<li><a href="../Reflectors.html">Reflectors</a></li>
<li>ValueType</li>
</ol>
</div>
<div id="page-content">
<div class="page-header">
<h1>ValueType</h1>
</div>
<p> class
<strong>ValueType</strong>
</p>
<div class="description">
<p>This only defines possible value types as constants and validators static methods.</p> <p>The internal PHP types returned by the <a href="http://php.net/gettype"><code>gettype()</code> function</a> are:</p>
<ul>
<li><a href="http://php.net/null">null</a></li>
<li><a href="http://php.net/boolean">boolean</a></li>
<li><a href="http://php.net/integer">integer</a></li>
<li><a href="http://php.net/float">float</a> (double included)</li>
<li><a href="http://php.net/string">string</a></li>
<li><a href="http://php.net/array">array</a></li>
<li><a href="http://php.net/object">object</a></li>
<li><a href="http://php.net/resource">resource</a></li>
<li>unknown, when no other type was possible (very rare)</li>
</ul>
<p>The class extends this list with a new type:</p>
<ul>
<li><a href="http://php.net/callable">callback</a>, defined as any variable passing
the <a href="http://php.net/is_callable"><code>is_callable()</code> function</a></li>
</ul>
<p>When the <code>getType()</code> method of this class tests each type one by one to find
the type of the parameter, you can use some specific flags have a flexible
behavior (see the documented constants of this class).</p>
<p>Various types of callbacks are defined to identify the "callable" type:</p>
<ul>
<li>function</li>
<li>closure</li>
<li>method of instantiated object</li>
<li>static method of a class</li>
<li>object</li>
</ul>
</p> </div>
<h2>Constants</h2>
<table class="table table-condensed">
<tr>
<td>TYPE_NULL</td>
<td class="last">
<p><em>Defines the <a href="http://php.net/null">null</a> type</em></p>
<p>
</p>
</td>
</tr>
<tr>
<td>TYPE_BOOLEAN</td>
<td class="last">
<p><em>Defines the <a href="http://php.net/boolean">boolean</a> type</em></p>
<p>
</p>
</td>
</tr>
<tr>
<td>TYPE_INTEGER</td>
<td class="last">
<p><em>Defines the <a href="http://php.net/integer">integer</a> type</em></p>
<p>
</p>
</td>
</tr>
<tr>
<td>TYPE_FLOAT</td>
<td class="last">
<p><em>Defines the <a href="http://php.net/float">float</a> (double included) type</em></p>
<p>
</p>
</td>
</tr>
<tr>
<td>TYPE_STRING</td>
<td class="last">
<p><em>Defines the <a href="http://php.net/string">string</a> type</em></p>
<p>
</p>
</td>
</tr>
<tr>
<td>TYPE_ARRAY</td>
<td class="last">
<p><em>Defines the <a href="http://php.net/array">array</a> type</em></p>
<p>
</p>
</td>
</tr>
<tr>
<td>TYPE_OBJECT</td>
<td class="last">
<p><em>Defines the <a href="http://php.net/object">object</a> type</em></p>
<p>
</p>
</td>
</tr>
<tr>
<td>TYPE_CALLBACK</td>
<td class="last">
<p><em>Defines the <a href="http://php.net/callable">callback</a> type</em></p>
<p>
</p>
</td>
</tr>
<tr>
<td>TYPE_RESOURCE</td>
<td class="last">
<p><em>Defines the <a href="http://php.net/resource">resource</a> type</em></p>
<p>
</p>
</td>
</tr>
<tr>
<td>TYPE_UNKNOWN</td>
<td class="last">
<p><em>Defines the unknown type, when no other type was possible (very rare)</em></p>
<p>
</p>
</td>
</tr>
<tr>
<td>CALLBACK_FUNCTION</td>
<td class="last">
<p><em>Defines a <em>function</em> callback: <code>$callback = 'functionName'</code></em></p>
<p>
</p>
</td>
</tr>
<tr>
<td>CALLBACK_CLOSURE</td>
<td class="last">
<p><em>Defines a <em>closure</em> callback (anonymous function): <code>$callback = function () use () {};</code></em></p>
<p>
</p>
</td>
</tr>
<tr>
<td>CALLBACK_METHOD</td>
<td class="last">
<p><em>Defines a <em>class' method</em> callback: <code>$callback = array('className', 'methodName')</code></em></p>
<p>
</p>
</td>
</tr>
<tr>
<td>CALLBACK_METHOD_STATIC</td>
<td class="last">
<p><em>Defines a <em>class' static method</em> callback: <code>$callback = 'className::methodName'</code></em></p>
<p>
</p>
</td>
</tr>
<tr>
<td>CALLBACK_OBJECT</td>
<td class="last">
<p><em>Defines a <em>object</em> callback: <code>$callback = array($object, 'methodName')</code></em></p>
<p>
</p>
</td>
</tr>
<tr>
<td>MODE_STRICT</td>
<td class="last">
<p><em>Defines the default behavior of internal PHP (this is the default value of the <code>$flag</code> parameter of class' methods)</em></p>
<p>
</p>
</td>
</tr>
<tr>
<td>BINARY_AS_BOOLEAN</td>
<td class="last">
<p><em>Defines the binary numbers <code>0</code> and <code>1</code> (and their decimal, hexadecimal, octal and binary equivalents) as booleans rather than integers</em></p>
<p>
</p>
</td>
</tr>
<tr>
<td>ARRAY_AS_CALLABLE</td>
<td class="last">
<p><em>Defines a callable array as a callable rather than an array</em></p>
<p>
</p>
</td>
</tr>
<tr>
<td>STRING_AS_CALLABLE</td>
<td class="last">
<p><em>Defines a callable string as a callable rather than a string</em></p>
<p>
</p>
</td>
</tr>
<tr>
<td>OBJECT_AS_CLOSURE</td>
<td class="last">
<p><em>Defines a <code>\Closure</code> object as a closure rather than an object</em></p>
<p>
</p>
</td>
</tr>
<tr>
<td>NUMERIC_AS_INTEGER</td>
<td class="last">
<p><em>Defines any numeric value as an integer</em></p>
<p>
</p>
</td>
</tr>
<tr>
<td>NUMERIC_AS_STRING</td>
<td class="last">
<p><em>Defines any numeric value as a string</em></p>
<p>
</p>
</td>
</tr>
</table>
<h2>Properties</h2>
<table class="table table-condensed">
<tr>
<td class="type" id="property_ordered_types">
static
array
</td>
<td>$ordered_types</td>
<td class="last">
</td>
<td></td>
</tr>
</table>
<h2>Methods</h2>
<div class="container-fluid underlined">
<div class="row">
<div class="col-md-2 type">
static
string
</div>
<div class="col-md-8 type">
<a href="#method_getType">getType</a>(
mixed $value,
int $flag = self::MODE_STRICT,
array $order = null)
<p>Returns a value type by testing it in the <code>$order</code> order.</p> </div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
static
<a href="../Reflectors/ReflectionValueInterface.html"><abbr title="Reflectors\ReflectionValueInterface">ReflectionValueInterface</abbr></a>
</div>
<div class="col-md-8 type">
<a href="#method_getReflector">getReflector</a>(
mixed $value,
int $flag = self::MODE_STRICT,
array $order = null)
<p>Returns a reflector for the value by testing its type in the <code>$order</code> order.</p> </div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
static
int|null
</div>
<div class="col-md-8 type">
<a href="#method_getCallbackType">getCallbackType</a>(
callable $callback)
<p>Returns the type of a callback</p> </div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
static
bool
</div>
<div class="col-md-8 type">
<a href="#method_isNull">isNull</a>(
mixed $value = null)
<p>Tests if a value is null</p> </div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
static
bool
</div>
<div class="col-md-8 type">
<a href="#method_isBoolean">isBoolean</a>(
mixed $value = null,
int $flag = self::MODE_STRICT)
<p>Tests if a value is a boolean</p> </div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
static
bool
</div>
<div class="col-md-8 type">
<a href="#method_isInteger">isInteger</a>(
mixed $value = null,
int $flag = self::MODE_STRICT)
<p>Tests if a value is an integer</p> </div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
static
bool
</div>
<div class="col-md-8 type">
<a href="#method_isFloat">isFloat</a>(
mixed $value = null)
<p>Tests if a value is a float</p> </div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
static
bool
</div>
<div class="col-md-8 type">
<a href="#method_isDouble">isDouble</a>(
mixed $value = null)
<p>Tests if a value is a double (alias of <code>self::isFloat()</code>)</p> </div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
static
bool
</div>
<div class="col-md-8 type">
<a href="#method_isRealNumber">isRealNumber</a>(
mixed $value = null)
<p>Tests if a value is a "real number" (alias of <code>self::isFloat()</code>)</p> </div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
static
bool
</div>
<div class="col-md-8 type">
<a href="#method_isString">isString</a>(
mixed $value = null,
int $flag = self::MODE_STRICT)
<p>Tests if a value is a string</p> </div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
static
bool
</div>
<div class="col-md-8 type">
<a href="#method_isArray">isArray</a>(
mixed $value = null,
int $flag = self::MODE_STRICT)
<p>Tests if a value is an array</p> </div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
static
bool
</div>
<div class="col-md-8 type">
<a href="#method_isObject">isObject</a>(
mixed $value = null,
int $flag = self::MODE_STRICT)
<p>Tests if a value is an object</p> </div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
static
bool
</div>
<div class="col-md-8 type">
<a href="#method_isClosure">isClosure</a>(
mixed $value = null)
<p>Tests if a value is a closure (alias of <code>self::isCallback()</code>)</p> </div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
static
bool
</div>
<div class="col-md-8 type">
<a href="#method_isCallable">isCallable</a>(
mixed $value = null)
<p>Tests if a value is callable (alias of <code>self::isCallback()</code>)</p> </div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
static
bool
</div>
<div class="col-md-8 type">
<a href="#method_isCallback">isCallback</a>(
mixed $value = null)
<p>Tests if a value is a valid callback</p> </div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-2 type">
static
bool
</div>
<div class="col-md-8 type">
<a href="#method_isResource">isResource</a>(
mixed $value = null)
<p>Tests if a value is a resource</p> </div>
<div class="col-md-2"></div>
</div>
</div>
<h2>Details</h2>
<div id="method-details">
<div class="method-item">
<h3 id="method_getType">
<div class="location">at line 200</div>
<code> static
string
<strong>getType</strong>(
mixed $value,
int $flag = self::MODE_STRICT,
array $order = null)</code>
</h3>
<div class="details">
<div class="method-description">
<p>Returns a value type by testing it in the <code>$order</code> order.</p> <p>The tests order defaults to the <code>$ordered_types</code> static of the class.</p>
<p>You can use some of the class' flags to have a flexible testing.</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>
mixed</td>
<td>$value</td>
<td>
</td>
</tr>
<tr>
<td>
int</td>
<td>$flag</td>
<td>
</td>
</tr>
<tr>
<td>
array</td>
<td>$order</td>
<td>
</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>
string</td>
<td>
</td>
</tr>
</table>
<h4>Exceptions</h4>
<table class="table table-condensed">
<tr>
<td><a target="_blank" href="http://php.net/InvalidArgumentException"><abbr title="InvalidArgumentException">InvalidArgumentException</abbr></a></td>
<td>if an item of the <code>$order</code> array does not seem to be a valid type</td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getReflector">
<div class="location">at line 231</div>
<code> static
<a href="../Reflectors/ReflectionValueInterface.html"><abbr title="Reflectors\ReflectionValueInterface">ReflectionValueInterface</abbr></a>
<strong>getReflector</strong>(
mixed $value,
int $flag = self::MODE_STRICT,
array $order = null)</code>
</h3>
<div class="details">
<div class="method-description">
<p>Returns a reflector for the value by testing its type in the <code>$order</code> order.</p> <p>See the documentation of the <code>getType()</code> method for more information about parameters.</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>
mixed</td>
<td>$value</td>
<td>
</td>
</tr>
<tr>
<td>
int</td>
<td>$flag</td>
<td>
</td>
</tr>
<tr>
<td>
array</td>
<td>$order</td>
<td>
</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>
<a href="../Reflectors/ReflectionValueInterface.html"><abbr title="Reflectors\ReflectionValueInterface">ReflectionValueInterface</abbr></a></td>
<td>
</td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_getCallbackType">
<div class="location">at line 255</div>
<code> static
int|null
<strong>getCallbackType</strong>(
callable $callback)</code>
</h3>
<div class="details">
<div class="method-description">
<p>Returns the type of a callback</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>
callable</td>
<td>$callback</td>
<td>
</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>
int|null</td>
<td>
</td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_isNull">
<div class="location">at line 294</div>
<code> static
bool
<strong>isNull</strong>(
mixed $value = null)</code>
</h3>
<div class="details">
<div class="method-description">
<p>Tests if a value is null</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>
mixed</td>
<td>$value</td>
<td>
</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>
bool</td>
<td>
</td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_isBoolean">
<div class="location">at line 306</div>
<code> static
bool
<strong>isBoolean</strong>(
mixed $value = null,
int $flag = self::MODE_STRICT)</code>
</h3>
<div class="details">
<div class="method-description">
<p>Tests if a value is a boolean</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>
mixed</td>
<td>$value</td>
<td>
</td>
</tr>
<tr>
<td>
int</td>
<td>$flag</td>
<td>
</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>
bool</td>
<td>
</td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_isInteger">
<div class="location">at line 321</div>
<code> static
bool
<strong>isInteger</strong>(
mixed $value = null,
int $flag = self::MODE_STRICT)</code>
</h3>
<div class="details">
<div class="method-description">
<p>Tests if a value is an integer</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>
mixed</td>
<td>$value</td>
<td>
</td>
</tr>
<tr>
<td>
int</td>
<td>$flag</td>
<td>
</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>
bool</td>
<td>
</td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_isFloat">
<div class="location">at line 335</div>
<code> static
bool
<strong>isFloat</strong>(
mixed $value = null)</code>
</h3>
<div class="details">
<div class="method-description">
<p>Tests if a value is a float</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>
mixed</td>
<td>$value</td>
<td>
</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>
bool</td>
<td>
</td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_isDouble">
<div class="location">at line 347</div>
<code> static
bool
<strong>isDouble</strong>(
mixed $value = null)</code>
</h3>
<div class="details">
<div class="method-description">
<p>Tests if a value is a double (alias of <code>self::isFloat()</code>)</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>
mixed</td>
<td>$value</td>
<td>
</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>
bool</td>
<td>
</td>
</tr>
</table>
<h4>See also</h4>
<table class="table table-condensed">
<tr>
<td>self::isFloat()</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_isRealNumber">
<div class="location">at line 359</div>
<code> static
bool
<strong>isRealNumber</strong>(
mixed $value = null)</code>
</h3>
<div class="details">
<div class="method-description">
<p>Tests if a value is a "real number" (alias of <code>self::isFloat()</code>)</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>
mixed</td>
<td>$value</td>
<td>
</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>
bool</td>
<td>
</td>
</tr>
</table>
<h4>See also</h4>
<table class="table table-condensed">
<tr>
<td>self::isFloat()</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_isString">
<div class="location">at line 371</div>
<code> static
bool
<strong>isString</strong>(
mixed $value = null,
int $flag = self::MODE_STRICT)</code>
</h3>
<div class="details">
<div class="method-description">
<p>Tests if a value is a string</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>
mixed</td>
<td>$value</td>
<td>
</td>
</tr>
<tr>
<td>
int</td>
<td>$flag</td>
<td>
</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>
bool</td>
<td>
</td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_isArray">
<div class="location">at line 389</div>
<code> static
bool
<strong>isArray</strong>(
mixed $value = null,
int $flag = self::MODE_STRICT)</code>
</h3>
<div class="details">
<div class="method-description">
<p>Tests if a value is an array</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>
mixed</td>
<td>$value</td>
<td>
</td>
</tr>
<tr>
<td>
int</td>
<td>$flag</td>
<td>
</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>
bool</td>
<td>
</td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_isObject">
<div class="location">at line 404</div>
<code> static
bool
<strong>isObject</strong>(
mixed $value = null,
int $flag = self::MODE_STRICT)</code>
</h3>
<div class="details">
<div class="method-description">
<p>Tests if a value is an object</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>
mixed</td>
<td>$value</td>
<td>
</td>
</tr>
<tr>
<td>
int</td>
<td>$flag</td>
<td>
</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>
bool</td>
<td>
</td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_isClosure">
<div class="location">at line 419</div>
<code> static
bool
<strong>isClosure</strong>(
mixed $value = null)</code>
</h3>
<div class="details">
<div class="method-description">
<p>Tests if a value is a closure (alias of <code>self::isCallback()</code>)</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>
mixed</td>
<td>$value</td>
<td>
</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>
bool</td>
<td>
</td>
</tr>
</table>
<h4>See also</h4>
<table class="table table-condensed">
<tr>
<td>self::isCallback()</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_isCallable">
<div class="location">at line 431</div>
<code> static
bool
<strong>isCallable</strong>(
mixed $value = null)</code>
</h3>
<div class="details">
<div class="method-description">
<p>Tests if a value is callable (alias of <code>self::isCallback()</code>)</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>
mixed</td>
<td>$value</td>
<td>
</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>
bool</td>
<td>
</td>
</tr>
</table>
<h4>See also</h4>
<table class="table table-condensed">
<tr>
<td>self::isCallback()</td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_isCallback">
<div class="location">at line 442</div>
<code> static
bool
<strong>isCallback</strong>(
mixed $value = null)</code>
</h3>
<div class="details">
<div class="method-description">
<p>Tests if a value is a valid callback</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>
mixed</td>
<td>$value</td>
<td>
</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>
bool</td>
<td>
</td>
</tr>
</table>
</div>
</div>
</div>
<div class="method-item">
<h3 id="method_isResource">
<div class="location">at line 453</div>
<code> static
bool
<strong>isResource</strong>(
mixed $value = null)</code>
</h3>
<div class="details">
<div class="method-description">
<p>Tests if a value is a resource</p> </div>
<div class="tags">
<h4>Parameters</h4>
<table class="table table-condensed">
<tr>
<td>
mixed</td>
<td>$value</td>
<td>
</td>
</tr>
</table>
<h4>Return Value</h4>
<table class="table table-condensed">
<tr>
<td>
bool</td>
<td>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
<div id="footer">
Generated by <a href="http://sami.sensiolabs.org/">Sami, the API Documentation Generator</a>.
</div>
</div>
</div>
</body>
</html>