mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-17 15:46:04 +02:00
Implemented draft for ActionManagement
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\ActionManagement\Read;
|
||||
|
||||
use App\Domain\ActionManagement\AbstractAction;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
final class ReadAction extends AbstractAction implements ReadActionInterface
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @see \App\Domain\ActionManagement\AbstractAction::isSecure()
|
||||
*/
|
||||
protected function isSecure(): bool
|
||||
{
|
||||
return $this->actionService->isRequestedActionSecure();
|
||||
}
|
||||
|
||||
/**
|
||||
* @todo Implement!
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @see \App\Domain\ActionManagement\AbstractAction::isValidByForm()
|
||||
*/
|
||||
protected function isValidByForm(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @see \App\Domain\ActionManagement\AbstractAction::proccess()
|
||||
*/
|
||||
protected function proccess()
|
||||
{
|
||||
return $this->actionService->getRequestedAction()->getRequestedEntity()->getEntity();
|
||||
}
|
||||
}
|
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\ActionManagement\Read;
|
||||
|
||||
use App\Domain\ActionManagement\ActionInterface;
|
||||
|
||||
/**
|
||||
* Needed for mocking with PHPUnit!
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface ReadActionInterface extends ActionInterface
|
||||
{
|
||||
}
|
Reference in New Issue
Block a user