mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
In between commit solving tests for meta and template management
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\PathManagement;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
final class NamespacePathMap implements NamespacePathMapInterface
|
||||
{
|
||||
/**
|
||||
* @var array|string[]
|
||||
*/
|
||||
private $folders;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $namespace;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $path;
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @see \App\Domain\PathManagement\NamespacePathMapInterface::getNamespace()
|
||||
*/
|
||||
public function getNamespace(): string
|
||||
{
|
||||
return $this->namespace;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @see \App\Domain\PathManagement\NamespacePathMapInterface::getPath()
|
||||
*/
|
||||
public function getPath(): string
|
||||
{
|
||||
return $this->path;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @see \App\Domain\PathManagement\NamespacePathMapInterface::setPath()
|
||||
*/
|
||||
public function setPath(string $path): void
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @see \App\Domain\PathManagement\NamespacePathMapInterface::setNamespace()
|
||||
*/
|
||||
public function setNamespace(string $namespace): void
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @see \App\Domain\PathManagement\NamespacePathMapInterface::setFolderArray()
|
||||
*/
|
||||
public function setFolderArray(array $folders): void
|
||||
{
|
||||
}
|
||||
|
||||
public function getFolderArray(): array
|
||||
{
|
||||
}
|
||||
}
|
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\PathManagement;
|
||||
|
||||
/**
|
||||
* Allows to map a path to an namespace.
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface NamespacePathMapInterface
|
||||
{
|
||||
/**
|
||||
* @param string $namespace
|
||||
*/
|
||||
public function setNamespace(string $namespace): void;
|
||||
|
||||
/**
|
||||
* @param string $path
|
||||
*/
|
||||
public function setPath(string $path): void;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getNamespace(): string;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getPath(): string;
|
||||
|
||||
/**
|
||||
* @param array|string[] $folders
|
||||
*/
|
||||
public function setFolderArray(array $folders): void;
|
||||
|
||||
/**
|
||||
* @return array|string[]
|
||||
*/
|
||||
public function getFolderArray(): array;
|
||||
}
|
Reference in New Issue
Block a user