Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
tipuloidea
/
back
/
vendor
/
spatie
/
php-structure-discoverer
/
src
/
Data
:
DiscoveredStructure.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace Spatie\StructureDiscoverer\Data; use ReflectionClass; use Spatie\StructureDiscoverer\Enums\DiscoveredStructureType; abstract class DiscoveredStructure { public function __construct( public string $name, public string $file, public string $namespace, ) { } abstract public function getType(): DiscoveredStructureType; /** * @param ReflectionClass<object> $reflection */ abstract public static function fromReflection(ReflectionClass $reflection): DiscoveredStructure; public function getFcqn(): string { return empty($this->namespace) ? $this->name : "{$this->namespace}\\{$this->name}"; } }