In between commit implementing security layer

This commit is contained in:
Kevin Frantz
2018-09-22 02:12:03 +02:00
parent bbcf369347
commit d255623f85
8 changed files with 129 additions and 38 deletions

View 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();
}
}