2020-04-23 23:49:56 +02:00
|
|
|
<?php
|
|
|
|
|
2021-05-09 20:15:43 +00:00
|
|
|
declare (strict_types=1);
|
2022-06-06 17:12:56 +00:00
|
|
|
namespace Rector\Php80\Contract;
|
2020-04-23 23:49:56 +02:00
|
|
|
|
2022-06-06 17:12:56 +00:00
|
|
|
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;
|
2020-04-23 23:49:56 +02:00
|
|
|
interface StrStartWithMatchAndRefactorInterface
|
|
|
|
{
|
2021-07-05 22:50:18 +00:00
|
|
|
/**
|
2021-11-28 17:01:20 +00:00
|
|
|
* @param \PhpParser\Node\Expr\BinaryOp\Identical|\PhpParser\Node\Expr\BinaryOp\NotIdentical $binaryOp
|
2021-07-05 22:50:18 +00:00
|
|
|
*/
|
2022-06-06 17:12:56 +00:00
|
|
|
public function match($binaryOp) : ?\Rector\Php80\ValueObject\StrStartsWith;
|
2020-04-23 23:49:56 +02:00
|
|
|
/**
|
|
|
|
* @return FuncCall|BooleanNot|null
|
|
|
|
*/
|
2022-06-06 17:12:56 +00:00
|
|
|
public function refactorStrStartsWith(\Rector\Php80\ValueObject\StrStartsWith $strStartsWith) : ?\PhpParser\Node;
|
2020-04-23 23:49:56 +02:00
|
|
|
}
|