PhpDataTypeSpecTrait
Describe what values are allowed to be stored in this field.
This trait is used to track a PHP-style field which is mapped ot a entity-style field.
Thus, it has both PHP's @var
($type
) and entity's @dataType
($dataType
).
Tags
Table of Contents
Properties
- $type : array<string|int, string>
- The PHP
Methods
Properties
$type
The PHP
public
array<string|int, string>
$type
Methods
getType()
public
getType() : array<string|int, string>
Return values
array<string|int, string>setType()
public
setType(string|array<string|int, string> $type) : $this
Parameters
- $type : string|array<string|int, string>