22 lines
370 B
PHP
22 lines
370 B
PHP
|
<?php
|
||
|
class MethodCallback
|
||
|
{
|
||
|
public static function staticCallback()
|
||
|
{
|
||
|
$args = func_get_args();
|
||
|
|
||
|
if ($args == array('foo', 'bar')) {
|
||
|
return 'pass';
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public function nonStaticCallback()
|
||
|
{
|
||
|
$args = func_get_args();
|
||
|
|
||
|
if ($args == array('foo', 'bar')) {
|
||
|
return 'pass';
|
||
|
}
|
||
|
}
|
||
|
}
|