Renamed function

This commit is contained in:
Kevin Frantz
2019-02-12 16:47:37 +01:00
parent 6347308672
commit 5d4592e27c
12 changed files with 38 additions and 15 deletions

View File

@@ -19,7 +19,7 @@ abstract class AbstractAction extends AbstractActionConstructor implements Actio
/**
* @return bool
*/
abstract protected function isValidByForm(): bool;
abstract protected function isValid(): bool;
/**
* Process the routine.
@@ -38,7 +38,7 @@ abstract class AbstractAction extends AbstractActionConstructor implements Actio
final public function execute()
{
if ($this->isSecure()) {
if ($this->isValidByForm()) {
if ($this->isValid()) {
return $this->proccess();
}
throw new NotValidByFormException('The requested Entity is not valid!');