opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
src
/
PhpDocParser
/
PhpDocParser
/
PhpDocNodeVisitor
➕ New
📤 Upload
✎ Editing:
CallablePhpDocNodeVisitor.php
← Back
<?php declare (strict_types=1); namespace Rector\PhpDocParser\PhpDocParser\PhpDocNodeVisitor; use PHPStan\PhpDocParser\Ast\Node; final class CallablePhpDocNodeVisitor extends \Rector\PhpDocParser\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor { /** * @readonly * @var string|null */ private $docContent; /** * @var callable(Node, string|null): (int|null|Node) */ private $callable; /** * @param callable(Node $callable, string|null $docContent): (int|null|Node) $callable */ public function __construct(callable $callable, ?string $docContent) { $this->docContent = $docContent; $this->callable = $callable; } /** * @return int|\PHPStan\PhpDocParser\Ast\Node|null */ public function enterNode(Node $node) { $callable = $this->callable; return $callable($node, $this->docContent); } }
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel