opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
vendor
/
rector
/
rector-doctrine
/
src
/
PhpDocParser
➕ New
📤 Upload
✎ Editing:
DoctrineDocBlockResolver.php
← Back
<?php declare (strict_types=1); namespace Rector\Doctrine\PhpDocParser; use PhpParser\Node\Stmt\Class_; use Rector\Doctrine\Enum\MappingClass; use Rector\Doctrine\Enum\OdmMappingClass; use Rector\Doctrine\NodeAnalyzer\AttrinationFinder; final class DoctrineDocBlockResolver { /** * @readonly * @var \Rector\Doctrine\NodeAnalyzer\AttrinationFinder */ private $attrinationFinder; public function __construct(AttrinationFinder $attrinationFinder) { $this->attrinationFinder = $attrinationFinder; } public function isDoctrineEntityClass(Class_ $class) : bool { return $this->attrinationFinder->hasByMany($class, [MappingClass::ENTITY, MappingClass::EMBEDDABLE, OdmMappingClass::DOCUMENT]); } }
💾 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