private function ArrayEntryToken::wrapIntoExactValueToken in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ArrayEntryToken.php \Prophecy\Argument\Token\ArrayEntryToken::wrapIntoExactValueToken()
Wraps non token $value into ExactValueToken
Parameters
$value:
Return value
1 call to ArrayEntryToken::wrapIntoExactValueToken()
- ArrayEntryToken::__construct in vendor/
phpspec/ prophecy/ src/ Prophecy/ Argument/ Token/ ArrayEntryToken.php
File
- vendor/
phpspec/ prophecy/ src/ Prophecy/ Argument/ Token/ ArrayEntryToken.php, line 116
Class
- ArrayEntryToken
- Array entry token.
Namespace
Prophecy\Argument\TokenCode
private function wrapIntoExactValueToken($value) {
return $value instanceof TokenInterface ? $value : new ExactValueToken($value);
}