mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2024-12-04 23:17:19 +01: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
|
||||
{
|
||||
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
|
||||
|
@ -12,6 +12,8 @@ interface ActionHandlerServiceInterface
|
||||
/**
|
||||
* Process an action an returns the results.
|
||||
*
|
||||
* @todo Implement that also results can be returned
|
||||
*
|
||||
* @return EntityInterface|null
|
||||
*/
|
||||
public function handle(): ?EntityInterface;
|
||||
|
@ -12,6 +12,8 @@ interface ActionInterface
|
||||
/**
|
||||
* Executes the action.
|
||||
*
|
||||
* @todo Implement that also results can be returned
|
||||
*
|
||||
* @return EntityInterface|null
|
||||
*/
|
||||
public function execute(): ?EntityInterface;
|
||||
|
Loading…
Reference in New Issue
Block a user