rector/rules/CodingStyle/ValueObject/ConcatStringAndPlaceholders.php
Tomas Votruba cdc3b7adef Updated Rector to commit f451b0b8e1e6761ec7f50809745d44d01caba66d
f451b0b8e1 [PHP 8.0] Bump to promoted properties (#4)
2021-05-10 23:39:21 +00:00

37 lines
723 B
PHP

<?php
declare (strict_types=1);
namespace Rector\CodingStyle\ValueObject;
use PhpParser\Node\Expr;
final class ConcatStringAndPlaceholders
{
/**
* @var string
*/
private $content;
/**
* @var mixed[]
*/
private $placeholderNodes;
/**
* @param Expr[] $placeholderNodes
*/
public function __construct(string $content, array $placeholderNodes)
{
$this->content = $content;
$this->placeholderNodes = $placeholderNodes;
}
public function getContent() : string
{
return $this->content;
}
/**
* @return Expr[]
*/
public function getPlaceholderNodes() : array
{
return $this->placeholderNodes;
}
}