parallel-functions/test/Fixture/TestCallables.php
2022-02-02 23:04:43 +01:00

22 lines
347 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;
}
}