mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-11-04 03:07:58 +00:00 
			
		
		
		
	Added comments
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user