1: <?php declare(strict_types = 1);
2:
3: namespace PHPStan\PhpDocParser\Ast\PhpDoc;
4:
5: use PHPStan\PhpDocParser\Ast\NodeAttributes;
6: use function trim;
7:
8: class ParamImmediatelyInvokedCallableTagValueNode implements PhpDocTagValueNode
9: {
10:
11: use NodeAttributes;
12:
13: /** @var string */
14: public $parameterName;
15:
16: /** @var string (may be empty) */
17: public $description;
18:
19: public function __construct(string $parameterName, string $description)
20: {
21: $this->parameterName = $parameterName;
22: $this->description = $description;
23: }
24:
25: public function __toString(): string
26: {
27: return trim("{$this->parameterName} {$this->description}");
28: }
29:
30: }
31: