TypeBuilderPart
Table of Contents
- $noTypeHints : array<string|int, string>
- $php7typeHints : array<string|int, string>
- $typeHintMap : array<string|int, mixed>
- checkNullable() : string
- Manage nullable types.
- getType() : string|null
- removeThis() : string
- Remove `$this` key, from the list of the return types. I.e:.
Properties
$noTypeHints
protected
static array<string|int, string>
$noTypeHints
= ['string', 'int', 'integer', 'bool', 'boolean', 'float', 'double', 'object', 'mixed', 'resource', '$this']
$php7typeHints
protected
static array<string|int, string>
$php7typeHints
= ['string', 'int', 'integer', 'bool', 'boolean', 'float', 'double']
$typeHintMap
protected
static array<string|int, mixed>
$typeHintMap
= ['string' => 'string', 'int' => 'int', 'integer' => 'int', 'bool' => 'bool', 'boolean' => 'bool', 'float' => 'float', 'double' => 'float']
Methods
checkNullable()
Manage nullable types.
private
checkNullable(string $type) : string
Parameters
- $type : string
Return values
string —getType()
private
getType(AbstractModel $model) : string|null
Parameters
- $model : AbstractModel
Tags
Return values
string|null —removeThis()
Remove `$this` key, from the list of the return types. I.e:.
private
removeThis(string $type) : string
Parameters
- $type : string