2020-04-23 23:49:56 +02:00
|
|
|
<?php
|
|
|
|
|
2021-05-09 20:15:43 +00:00
|
|
|
declare (strict_types=1);
|
2020-04-23 23:49:56 +02:00
|
|
|
namespace Rector\Php80\Contract;
|
|
|
|
|
|
|
|
use PhpParser\Node;
|
|
|
|
use PhpParser\Node\Expr\BinaryOp;
|
|
|
|
use PhpParser\Node\Expr\BooleanNot;
|
|
|
|
use PhpParser\Node\Expr\FuncCall;
|
2020-09-01 19:56:30 +02:00
|
|
|
use Rector\Php80\ValueObject\StrStartsWith;
|
2020-04-23 23:49:56 +02:00
|
|
|
interface StrStartWithMatchAndRefactorInterface
|
|
|
|
{
|
2021-07-05 22:50:18 +00:00
|
|
|
/**
|
|
|
|
* @param \PhpParser\Node\Expr\BinaryOp $binaryOp
|
|
|
|
*/
|
|
|
|
public function match($binaryOp) : ?\Rector\Php80\ValueObject\StrStartsWith;
|
2020-04-23 23:49:56 +02:00
|
|
|
/**
|
|
|
|
* @return FuncCall|BooleanNot|null
|
2021-07-05 22:50:18 +00:00
|
|
|
* @param \Rector\Php80\ValueObject\StrStartsWith $strStartsWith
|
2020-04-23 23:49:56 +02:00
|
|
|
*/
|
2021-07-05 22:50:18 +00:00
|
|
|
public function refactorStrStartsWith($strStartsWith) : ?\PhpParser\Node;
|
2020-04-23 23:49:56 +02:00
|
|
|
}
|