mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-26 20:53:31 +00:00
31 lines
719 B
PHP
31 lines
719 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace PhpParser\Node;
|
|
|
|
use PhpParser\NodeAbstract;
|
|
class IntersectionType extends \PhpParser\Node\ComplexType
|
|
{
|
|
/** @var (Identifier|Name)[] Types */
|
|
public $types;
|
|
/**
|
|
* Constructs an intersection type.
|
|
*
|
|
* @param (Identifier|Name)[] $types Types
|
|
* @param array $attributes Additional attributes
|
|
*/
|
|
public function __construct(array $types, array $attributes = [])
|
|
{
|
|
$this->attributes = $attributes;
|
|
$this->types = $types;
|
|
}
|
|
public function getSubNodeNames() : array
|
|
{
|
|
return ['types'];
|
|
}
|
|
public function getType() : string
|
|
{
|
|
return 'IntersectionType';
|
|
}
|
|
}
|