rector/rules/Php80/Contract/StrStartWithMatchAndRefactorInterface.php
2022-05-27 11:25:02 +00:00

23 lines
659 B
PHP

<?php
declare (strict_types=1);
namespace Rector\Php80\Contract;
use PhpParser\Node;
use PhpParser\Node\Expr\BinaryOp\Identical;
use PhpParser\Node\Expr\BinaryOp\NotIdentical;
use PhpParser\Node\Expr\BooleanNot;
use PhpParser\Node\Expr\FuncCall;
use Rector\Php80\ValueObject\StrStartsWith;
interface StrStartWithMatchAndRefactorInterface
{
/**
* @param \PhpParser\Node\Expr\BinaryOp\Identical|\PhpParser\Node\Expr\BinaryOp\NotIdentical $binaryOp
*/
public function match($binaryOp) : ?StrStartsWith;
/**
* @return FuncCall|BooleanNot|null
*/
public function refactorStrStartsWith(StrStartsWith $strStartsWith) : ?Node;
}