implemented sourcemeta and test

This commit is contained in:
Kevin Frantz
2018-11-23 13:22:45 +01:00
parent 0e04da8ea1
commit 8a311caddc
10 changed files with 327 additions and 4 deletions

View File

@@ -0,0 +1,35 @@
<?php
namespace App\Domain\SourceManagement;
use App\Domain\TemplateManagement\TemplateMetaInterface;
use App\Entity\Source\SourceInterface;
/**
* A meta source offers informations, which the system needs to handle the source.
*
* @author kevinfrantz
*/
interface SourceMetaInterface
{
public function getSourceReflection(): \ReflectionClass;
public function getInterfaceReflection(): \ReflectionClass;
public function getTemplateMeta(): TemplateMetaInterface;
/**
* @return array the namespace elements without the root
*/
public function getBasicPathArray(): array;
/**
* @return string Short class name in lower case without "Abstract" and "Source"
*/
public function getBasicName(): string;
/**
* @return SourceInterface The source to which the meta object belongs to
*/
public function getSource(): SourceInterface;
}