mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-04-16 10:16:22 +02:00
Added comments
This commit is contained in:
parent
88ce800478
commit
19e1e00199
@ -9,9 +9,15 @@ use Infinito\Exception\NoDefaultClassException;
|
|||||||
*/
|
*/
|
||||||
final class ActionFactoryService extends AbstractActionConstructor implements ActionFactoryServiceInterface
|
final class ActionFactoryService extends AbstractActionConstructor implements ActionFactoryServiceInterface
|
||||||
{
|
{
|
||||||
const BASE_NAMESPACE = 'Infinito\\Domain\\ActionManagement\\';
|
/**
|
||||||
|
* @var string Namespace in which the actions will be found
|
||||||
|
*/
|
||||||
|
private const BASE_NAMESPACE = 'Infinito\\Domain\\ActionManagement\\';
|
||||||
|
|
||||||
const CLASS_SUFFIX = 'Action';
|
/**
|
||||||
|
* @var string Suffix for action classes
|
||||||
|
*/
|
||||||
|
private const CLASS_SUFFIX = 'Action';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $name
|
* @param string $name
|
||||||
|
@ -12,6 +12,8 @@ interface ActionHandlerServiceInterface
|
|||||||
/**
|
/**
|
||||||
* Process an action an returns the results.
|
* Process an action an returns the results.
|
||||||
*
|
*
|
||||||
|
* @todo Implement that also results can be returned
|
||||||
|
*
|
||||||
* @return EntityInterface|null
|
* @return EntityInterface|null
|
||||||
*/
|
*/
|
||||||
public function handle(): ?EntityInterface;
|
public function handle(): ?EntityInterface;
|
||||||
|
@ -12,6 +12,8 @@ interface ActionInterface
|
|||||||
/**
|
/**
|
||||||
* Executes the action.
|
* Executes the action.
|
||||||
*
|
*
|
||||||
|
* @todo Implement that also results can be returned
|
||||||
|
*
|
||||||
* @return EntityInterface|null
|
* @return EntityInterface|null
|
||||||
*/
|
*/
|
||||||
public function execute(): ?EntityInterface;
|
public function execute(): ?EntityInterface;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user