mirror of
https://github.com/Respect/Validation.git
synced 2024-06-29 02:30:06 +02:00
17 lines
312 B
PHP
17 lines
312 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);
|
|
}
|
|
}
|
|
|