mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
misc: Update interface doc.
This commit is contained in:
parent
6ddbf35a7b
commit
b8992b8eeb
@ -14,7 +14,7 @@ namespace Chill\DocGeneratorBundle\Context;
|
|||||||
use Chill\DocGeneratorBundle\Context\Exception\ContextNotFoundException;
|
use Chill\DocGeneratorBundle\Context\Exception\ContextNotFoundException;
|
||||||
use Chill\DocGeneratorBundle\Entity\DocGeneratorTemplate;
|
use Chill\DocGeneratorBundle\Entity\DocGeneratorTemplate;
|
||||||
|
|
||||||
class ContextManager
|
final class ContextManager implements ContextManagerInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var DocGeneratorContextInterface[]|iterable
|
* @var DocGeneratorContextInterface[]|iterable
|
||||||
@ -26,9 +26,6 @@ class ContextManager
|
|||||||
$this->contexts = $contexts;
|
$this->contexts = $contexts;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @throw ContextNotFoundException when the context is not found
|
|
||||||
*/
|
|
||||||
public function getContextByDocGeneratorTemplate(DocGeneratorTemplate $docGeneratorTemplate): DocGeneratorContextInterface
|
public function getContextByDocGeneratorTemplate(DocGeneratorTemplate $docGeneratorTemplate): DocGeneratorContextInterface
|
||||||
{
|
{
|
||||||
foreach ($this->contexts as $key => $context) {
|
foreach ($this->contexts as $key => $context) {
|
||||||
|
@ -0,0 +1,30 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Chill is a software for social workers
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view
|
||||||
|
* the LICENSE file that was distributed with this source code.
|
||||||
|
*/
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace Chill\DocGeneratorBundle\Context;
|
||||||
|
|
||||||
|
use Chill\DocGeneratorBundle\Context\Exception\ContextNotFoundException;
|
||||||
|
use Chill\DocGeneratorBundle\Entity\DocGeneratorTemplate;
|
||||||
|
|
||||||
|
interface ContextManagerInterface
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @throws ContextNotFoundException When the context is not found.
|
||||||
|
*/
|
||||||
|
public function getContextByDocGeneratorTemplate(DocGeneratorTemplate $docGeneratorTemplate): DocGeneratorContextInterface;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @throws ContextNotFoundException When the context is not found.
|
||||||
|
*/
|
||||||
|
public function getContextByKey(string $searchedKey): DocGeneratorContextInterface;
|
||||||
|
|
||||||
|
public function getContexts(): array;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user