mirror of
https://github.com/Respect/Validation.git
synced 2026-03-16 07:15:45 +01:00
Most changes was made by php-cs-fixer. Also removes unused `RecursiveTreeIterator` class.
15 lines
311 B
PHP
15 lines
311 B
PHP
<?php
|
|
namespace Respect\Validation\Rules;
|
|
|
|
class Call extends AbstractRelated
|
|
{
|
|
public function getReferenceValue($input)
|
|
{
|
|
return call_user_func_array($this->reference, array(&$input));
|
|
}
|
|
|
|
public function hasReference($input)
|
|
{
|
|
return is_callable($this->reference);
|
|
}
|
|
}
|