public static function Argument::type in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpspec/prophecy/src/Prophecy/Argument.php \Prophecy\Argument::type()
Checks that argument is of specific type or instance of specific class.
Parameters
string $type Type name (`integer`, `string`) or full class name:
Return value
Token\TypeToken
File
- vendor/
phpspec/ prophecy/ src/ Prophecy/ Argument.php, line 42
Class
- Argument
- Argument tokens shortcuts.
Namespace
ProphecyCode
public static function type($type) {
return new Token\TypeToken($type);
}