mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-17 07:36:03 +02:00
Optimized Actions, Tests and renamed LIST to THREAD out of php incompatibility reasons
This commit is contained in:
@@ -7,6 +7,15 @@ use App\Domain\ActionManagement\AbstractAction;
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
abstract class AbstractCreateAction extends AbstractAction
|
||||
abstract class AbstractCreateAction extends AbstractAction implements CreateActionInterface
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @see \App\Domain\ActionManagement\AbstractAction::isSecure()
|
||||
*/
|
||||
protected function isSecure(): bool
|
||||
{
|
||||
return $this->actionService->isRequestedActionSecure();
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\ActionManagement\Create;
|
||||
|
||||
use App\Domain\ActionManagement\ActionInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface CreateActionInterface extends ActionInterface
|
||||
{
|
||||
}
|
@@ -7,10 +7,6 @@ namespace App\Domain\ActionManagement\Create;
|
||||
*/
|
||||
final class CreateSourceAction extends AbstractCreateAction
|
||||
{
|
||||
protected function isSecure(): bool
|
||||
{
|
||||
}
|
||||
|
||||
protected function isValidByForm(): bool
|
||||
{
|
||||
}
|
||||
|
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\ActionManagement\Thread;
|
||||
|
||||
use App\Domain\ActionManagement\AbstractAction;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
abstract class AbstractThreadAction extends AbstractAction
|
||||
{
|
||||
}
|
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\ActionManagement\Thread;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
final class ThreadSourceAction extends AbstractThreadAction
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @see \App\Domain\ActionManagement\AbstractAction::isSecure()
|
||||
*/
|
||||
protected function isSecure(): bool
|
||||
{
|
||||
}
|
||||
|
||||
protected function isValidByForm(): bool
|
||||
{
|
||||
}
|
||||
|
||||
protected function proccess()
|
||||
{
|
||||
}
|
||||
}
|
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\ActionManagement\Update;
|
||||
|
||||
use App\Domain\ActionManagement\AbstractAction;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
abstract class AbstractUpdateAction extends AbstractAction
|
||||
{
|
||||
}
|
@@ -2,6 +2,20 @@
|
||||
|
||||
namespace App\Domain\ActionManagement\Update;
|
||||
|
||||
class UpdateSourceAction
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
final class UpdateSourceAction extends AbstractUpdateAction
|
||||
{
|
||||
protected function isSecure(): bool
|
||||
{
|
||||
}
|
||||
|
||||
protected function isValidByForm(): bool
|
||||
{
|
||||
}
|
||||
|
||||
protected function proccess()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user