2020-04-23 23:49:56 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
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
|
|
|
|
{
|
2020-09-01 19:56:30 +02:00
|
|
|
public function match(BinaryOp $binaryOp): ?StrStartsWith;
|
2020-04-23 23:49:56 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return FuncCall|BooleanNot|null
|
|
|
|
*/
|
2020-09-01 19:56:30 +02:00
|
|
|
public function refactorStrStartsWith(StrStartsWith $strStartsWith): ?Node;
|
2020-04-23 23:49:56 +02:00
|
|
|
}
|