mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-04-16 10:16:22 +02:00
29 lines
486 B
PHP
29 lines
486 B
PHP
<?php
|
|
|
|
namespace App\Creator\Factory;
|
|
|
|
use App\Entity\Source\SourceInterface;
|
|
|
|
/**
|
|
* @author kevinfrantz
|
|
*/
|
|
class AbstractSourceFactory
|
|
{
|
|
/**
|
|
* @var SourceInterface
|
|
*/
|
|
protected $source;
|
|
|
|
public function __construct(SourceInterface $source)
|
|
{
|
|
$this->source = $source;
|
|
}
|
|
|
|
protected function getSourceClassShortName(): string
|
|
{
|
|
$reflection = new \ReflectionClass($this->source);
|
|
|
|
return $reflection->getShortName();
|
|
}
|
|
}
|