Char
extends Type
in package
Represents an 8-bit unsigned integer
Tags
Table of Contents
Properties
- $value : int
Methods
- __construct() : mixed
- Constructor
- __toString() : string
- Magic method for type coercion to string
- getValue() : mixed
- Get the internal value
- setValue() : mixed
- Set the internal value
Properties
$value
protected
int
$value
= 0
Methods
__construct()
Constructor
public
__construct([string $value = null ]) : mixed
Parameters
- $value : string = null
-
Internal value
Tags
__toString()
Magic method for type coercion to string
public
__toString() : string
Return values
stringgetValue()
Get the internal value
public
getValue() : mixed
setValue()
Set the internal value
public
setValue(string $value) : mixed
Parameters
- $value : string
-
The new value