2026-03-30 14:54:57 +07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace CuyZ\Valinor\Definition;
|
|
|
|
|
|
|
|
|
|
use CuyZ\Valinor\Type\Type;
|
|
|
|
|
|
|
|
|
|
/** @internal */
|
2026-04-18 20:32:18 +07:00
|
|
|
final readonly class MethodDefinition
|
2026-03-30 14:54:57 +07:00
|
|
|
{
|
|
|
|
|
public function __construct(
|
|
|
|
|
/** @var non-empty-string */
|
2026-04-18 20:32:18 +07:00
|
|
|
public string $name,
|
2026-03-30 14:54:57 +07:00
|
|
|
/** @var non-empty-string */
|
2026-04-18 20:32:18 +07:00
|
|
|
public string $signature,
|
|
|
|
|
public Attributes $attributes,
|
|
|
|
|
public Parameters $parameters,
|
|
|
|
|
public bool $isStatic,
|
|
|
|
|
public bool $isPublic,
|
|
|
|
|
public Type $returnType
|
2026-03-30 14:54:57 +07:00
|
|
|
) {}
|
|
|
|
|
}
|