$propType
$propType : string|null
Assigned value-type for the property.
In case of basic PHP types, it is a string value such as int
.
It uses NULL
to represent mixed
or ""
(mixed shorthand) to make it
easy & fast to check for untyped properties via a === null
comparison.
In case of classes, this is the normalized NameSpace\Class
path, but
WITHOUT any initial leading \
("look from the global namespace")
backslash. That's PHP's preferred notation for class paths in all of its
various "get name" functions. However, that's very unsafe for actual
object creation, since PHP would first try resolving to a relative
object. Therefore, use getStrictClassPath()
for actual creation and
for all strict comparisons where any kind of namespace resolution will
be involved, in functions such as is_a()
or is_subclass_of()
, etc!
Type
string|null