PHP version: 5
Required modules:
standard
Required packages:
TypeInterface.php, Printable.php
class it\icosaedro\phplint\ArrayBothType
|
`--(it\icosaedro\phplint\TypeInterface)
`--(it\icosaedro\containers\Printable)
Represents the type array[]E that is an array with indeces that may be both int and string
Version: $Date: 2012/02/01 08:11:47 $
Author: Umberto Salsi <salsi@icosaedro.it>
The Types::parseType() method uses this class to represent the result of the compilation of a textual type descriptor.
{
void __construct(
it\icosaedro\phplint\TypeInterface$element_type)Creates a new array type array[]E
Parameters:
$element_typeType of the elements. it\icosaedro\phplint\TypeInterfacegetElementType()Returns the type of the elements
Return: Type of the elements.
boolean check(
mixed $v)
implementsit\icosaedro\phplint\TypeInterfaceChecks if the value is an array of type array[]E
Parameters:
$vAny expression or variable. Return: True if the value is either NULL or an array whose elements are all of the type expected as set by the constructor.
string __toString()
implementsit\icosaedro\containers\PrintableReturns this type descriptor
Return: The string "E[]" where E is the type set in the constructor.
}
Generated by PHPLint Documentator