PHP 8.2.31
Preview: RectorInterface.php Size: 717 B
/opt/cpanel/ea-wappspector/vendor/rector/rector/src/Contract/Rector/RectorInterface.php

<?php

declare (strict_types=1);
namespace Rector\Contract\Rector;

use PhpParser\Node;
use PhpParser\NodeTraverser;
use PhpParser\NodeVisitor;
use Symplify\RuleDocGenerator\Contract\DocumentedRuleInterface;
interface RectorInterface extends NodeVisitor, DocumentedRuleInterface
{
    /**
     * List of nodes this class checks, classes that implements \PhpParser\Node
     * See beautiful map of all nodes https://github.com/rectorphp/php-parser-nodes-docs#node-overview
     *
     * @return array<class-string<Node>>
     */
    public function getNodeTypes() : array;
    /**
     * Process Node of matched type
     * @return Node|Node[]|null|NodeTraverser::*
     */
    public function refactor(Node $node);
}

Directory Contents

Dirs: 0 × Files: 3

Name Size Perms Modified Actions
364 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
717 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
422 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).