parallel-functions/test/Fixture/TestCallables.php

22 lines
347 B
PHP
Raw Normal View History

2018-10-28 16:18:24 +01:00
<?php
namespace Amp\ParallelFunctions\Test\Fixture;
2022-02-02 23:04:43 +01:00
class TestCallables
{
public static function staticMethod(int $value): int
{
2018-10-28 16:18:24 +01:00
return $value + 1;
}
2022-02-02 23:04:43 +01:00
public function instanceMethod(int $value): int
{
2018-10-28 16:18:24 +01:00
return $value + 2;
}
2022-02-02 23:04:43 +01:00
public function __invoke(int $value)
{
2018-10-28 16:18:24 +01:00
return $value + 3;
}
}