mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
In between commit implementing security layer
This commit is contained in:
28
application/src/Creator/Factory/AbstractSourceFactory.php
Normal file
28
application/src/Creator/Factory/AbstractSourceFactory.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace Creator\Factory;
|
||||
|
||||
use App\Entity\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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user