mirror of
https://github.com/danog/parallel-functions.git
synced 2024-11-30 04:39:03 +01:00
22 lines
347 B
PHP
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;
|
|
}
|
|
}
|