mirror of
https://github.com/danog/parallel-functions.git
synced 2024-12-03 10:07:50 +01:00
18 lines
335 B
PHP
18 lines
335 B
PHP
|
<?php
|
||
|
|
||
|
namespace Amp\ParallelFunctions\Test\Fixture;
|
||
|
|
||
|
class TestCallables {
|
||
|
public static function staticMethod(int $value): int {
|
||
|
return $value + 1;
|
||
|
}
|
||
|
|
||
|
public function instanceMethod(int $value): int {
|
||
|
return $value + 2;
|
||
|
}
|
||
|
|
||
|
public function __invoke(int $value) {
|
||
|
return $value + 3;
|
||
|
}
|
||
|
}
|