Trait TypedResultTrait
Implements the TypedResultInterface
Direct Users
Properties summary
-
$_returnType
protectedstring
The type name this expression will return when executed
Method Summary
-
getReturnType() public
Gets the type of the value this object will generate. -
returnType() public deprecated
Sets the type of the value this object will generate. If called without arguments, returns the current known type
-
setReturnType() public
Sets the type of the value this object will generate.
Method Detail
getReturnType() public ¶
getReturnType( )
Gets the type of the value this object will generate.
Returns
string
returnType() public deprecated ¶
returnType( string|null $type = null )
Sets the type of the value this object will generate. If called without arguments, returns the current known type
Deprecated
3.5.0 Use getReturnType()/setReturnType() instead.
Parameters
- string|null $type optional null
- The name of the type that is to be returned
Returns
setReturnType() public ¶
setReturnType( string $type )
Sets the type of the value this object will generate.
Parameters
- string $type
- The name of the type that is to be returned
Returns
$this