Implemented formMeta

This commit is contained in:
Kevin Frantz
2018-11-23 16:21:26 +01:00
parent b9a312cfd9
commit 2009f1b691
6 changed files with 88 additions and 12 deletions

View File

@@ -2,9 +2,11 @@
namespace App\Domain\SourceManagement;
use App\Domain\FormManagement\FormMetaInterface;
use App\Domain\TemplateManagement\TemplateMetaInterface;
use App\Entity\Source\SourceInterface;
use App\Domain\TemplateManagement\TemplateMeta;
use App\Domain\FormManagement\FormMeta;
/**
* @author kevinfrantz
@@ -41,6 +43,11 @@ class SourceMeta implements SourceMetaInterface
*/
private $source;
/**
* @var FormMetaInterface
*/
private $formMeta;
public function __construct(SourceInterface $source)
{
$this->source = $source;
@@ -48,7 +55,8 @@ class SourceMeta implements SourceMetaInterface
$this->setBasicPathArray();
$this->setBasicName();
$this->setInterfaceReflection();
$this->templateMeta = new TemplateMeta($this);
$this->templateMeta = new TemplateMeta($this->basicPathArray, $this->basicName, 'entity');
$this->formMeta = new FormMeta($this);
}
private function setBasicPathArray(): void
@@ -103,4 +111,9 @@ class SourceMeta implements SourceMetaInterface
{
return $this->source;
}
public function getFormMeta(): FormMetaInterface
{
return $this->formMeta;
}
}