mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-06 03:47:04 +00:00
32 lines
644 B
PHP
32 lines
644 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Twig.
|
|
*
|
|
* (c) Fabien Potencier
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Twig\Node;
|
|
|
|
use Twig\Attribute\YieldReady;
|
|
|
|
/**
|
|
* Represents a type declaration node.
|
|
*
|
|
* @author Fabien Potencier <fabien@symfony.com>
|
|
*/
|
|
#[YieldReady]
|
|
final class TypeNode extends Node
|
|
{
|
|
/**
|
|
* @internal
|
|
*/
|
|
public function __construct(string $name, string $type, bool $optional, int $lineno)
|
|
{
|
|
parent::__construct([], ['name' => $name, 'type' => $type, 'optional' => $optional], $lineno);
|
|
}
|
|
}
|