opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
src
/
BetterPhpDocParser
/
PhpDocNodeVisitor
➕ New
📤 Upload
✎ Editing:
ChangedPhpDocNodeVisitor.php
← Back
<?php declare (strict_types=1); namespace Rector\BetterPhpDocParser\PhpDocNodeVisitor; use PHPStan\PhpDocParser\Ast\Node; use Rector\BetterPhpDocParser\ValueObject\PhpDocAttributeKey; use Rector\PhpDocParser\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor; final class ChangedPhpDocNodeVisitor extends AbstractPhpDocNodeVisitor { /** * @var bool */ private $hasChanged = \false; public function beforeTraverse(Node $node) : void { $this->hasChanged = \false; } public function enterNode(Node $node) : ?Node { $origNode = $node->getAttribute(PhpDocAttributeKey::ORIG_NODE); if ($origNode === null) { $this->hasChanged = \true; } return null; } public function hasChanged() : bool { return $this->hasChanged; } }
💾 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