TypePHP 编译器 https://swoole.com/aot/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

22 lines
324 B

<?php
namespace Test2;
class MyClass
{
private string $name;
private int $a;
private int $b;
function __construct(int $a, int $b, string $name)
{
$this->name = $name;
$this->a = $a;
$this->b = $b;
}
function sum(): int
{
return $this->a + $this->b;
}
}