parallel-functions/test/Fixture/TestCallables.php
2018-10-28 10:18:24 -05:00

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;
}
}