public function ArgumentsWildcard::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpspec/prophecy/src/Prophecy/Argument/ArgumentsWildcard.php \Prophecy\Argument\ArgumentsWildcard::__construct()
Initializes wildcard.
Parameters
array $arguments Array of argument tokens or values:
File
- vendor/
phpspec/ prophecy/ src/ Prophecy/ Argument/ ArgumentsWildcard.php, line 32
Class
- ArgumentsWildcard
- Arguments wildcarding.
Namespace
Prophecy\ArgumentCode
public function __construct(array $arguments) {
foreach ($arguments as $argument) {
if (!$argument instanceof Token\TokenInterface) {
$argument = new Token\ExactValueToken($argument);
}
$this->tokens[] = $argument;
}
}