Added comments

This commit is contained in:
Kevin Frantz 2019-04-14 13:02:31 +02:00
parent 88ce800478
commit 19e1e00199
3 changed files with 12 additions and 2 deletions

View File

@ -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

View File

@ -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;

View File

@ -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;