rector/rules/CodingStyle/ValueObject/NameAndParent.php
Tomas Votruba abe47f2ff5 Updated Rector to commit af1cbb92fdd8792ea2020a08e546efe4adfc1701
af1cbb92fd [Core] Add Smarty Support for PhpFilesFinder check non-PHP files (#736)
2021-08-22 21:06:43 +00:00

39 lines
809 B
PHP

<?php
declare (strict_types=1);
namespace Rector\CodingStyle\ValueObject;
use PhpParser\Node;
use PhpParser\Node\Identifier;
use PhpParser\Node\Name;
final class NameAndParent
{
/**
* @var \PhpParser\Node
*/
private $nameNode;
/**
* @var \PhpParser\Node
*/
private $parentNode;
/**
* @param Name|Identifier $nameNode
*/
public function __construct(\PhpParser\Node $nameNode, \PhpParser\Node $parentNode)
{
$this->nameNode = $nameNode;
$this->parentNode = $parentNode;
}
/**
* @return \PhpParser\Node\Identifier|\PhpParser\Node\Name
*/
public function getNameNode()
{
return $this->nameNode;
}
public function getParentNode() : \PhpParser\Node
{
return $this->parentNode;
}
}