本文整理汇总了PHP中Functions::allowExcessiveArguments方法的典型用法代码示例。如果您正苦于以下问题:PHP Functions::allowExcessiveArguments方法的具体用法?PHP Functions::allowExcessiveArguments怎么用?PHP Functions::allowExcessiveArguments使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Functions
的用法示例。
在下文中一共展示了Functions::allowExcessiveArguments方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: walk
/**
* {@inheritDoc}
*/
public function walk(callable $function)
{
$function = Functions::allowExcessiveArguments($function);
foreach ($this->keys as $position => $key) {
$function($this->values[$position], $key);
}
}
示例2: projectTo
public function projectTo(callable $function)
{
$self = clone $this;
$self->projectionFunction = Functions::allowExcessiveArguments($function);
return $self;
}
示例3: __constructJoinOnIterator
public function __constructJoinOnIterator(callable $filter)
{
$this->filter = Functions::allowExcessiveArguments($filter);
}
示例4: __constructJoinOnEqualityIterator
public function __constructJoinOnEqualityIterator(callable $outerKeyFunction, callable $innerKeyFunction)
{
$this->outerKeyFunction = Functions::allowExcessiveArguments($outerKeyFunction);
$this->innerKeyFunction = Functions::allowExcessiveArguments($innerKeyFunction);
}
示例5: __constructIterator
protected function __constructIterator(callable $groupKeyFunction, callable $traversableFactory)
{
$this->groupKeyFunction = Functions::allowExcessiveArguments($groupKeyFunction);
$this->traversableFactory = $traversableFactory;
}