parallel-functions/test/Fixture/TestCallables.php

18 lines
335 B
PHP
Raw Normal View History

2018-10-28 16:18:24 +01:00
<?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;
}
}