Skip to content
Code-Schnipsel Gruppen Projekte
Bestätigt Commit b4466752 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix(OrderingStepInterface): interface return types

Übergeordneter 4bbde3c4
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
3 Merge Requests!81fix(CouponCodeInput): mobile buttons adjusted,!80fix(CouponCodeInput): mobile buttons adjusted,!79feat!: quiqqer v2
......@@ -8,6 +8,8 @@
use QUI;
use QUI\Locale;
use function dirname;
/**
......@@ -36,10 +38,10 @@ public function getBody(): string
}
/**
* @param null|QUI\Locale $Locale
* @param null|Locale $Locale
* @return string
*/
public function getName($Locale = null): string
public function getName(Locale $Locale = null): string
{
return 'Delivery';
}
......@@ -52,13 +54,13 @@ public function getIcon(): string
return 'fa-truck';
}
public function validate()
public function validate(): void
{
// TODO: Implement validate() method.
}
public function save()
public function save(): void
{
// TODO: Implement save() method.
}
......
......@@ -154,14 +154,14 @@ public function getIcon(): string
/**
*
*/
public function validate()
public function validate(): void
{
}
/**
* placeholder
*/
public function save()
public function save(): void
{
}
......
......@@ -61,19 +61,11 @@ public function hasOwnForm(): bool
return true;
}
/**
*
*/
public function validate(): void
{
// TODO: Implement validate() method.
}
/**
* @return void
*/
public function save(): void
{
// TODO: Implement save() method.
}
}
......@@ -3,6 +3,7 @@
namespace QUI\ERP\Order\Controls;
use QUI\ERP\Order\Exception;
use QUI\Locale;
/**
* Class OrderingStepInterface
......@@ -13,32 +14,32 @@ interface OrderingStepInterface
/**
* Return the step name
*
* @param null|\QUI\Locale $Locale
* @param null|Locale $Locale
* @return string
*/
public function getName($Locale = null);
public function getName(Locale $Locale = null): string;
/**
* @param null|\QUI\Locale $Locale $Locale
* @param null|Locale $Locale $Locale
* @return mixed
*/
public function getTitle($Locale = null);
public function getTitle(Locale $Locale = null): mixed;
/**
* @throws Exception
*/
public function validate();
public function validate(): void;
/**
* @return bool
*/
public function isValid();
public function isValid(): bool;
/**
* Save the values from the step into the processing order
*
* @return mixed
* @throws \QUI\ERP\Order\Exception
* @return void
* @throws Exception
*/
public function save();
public function save(): void;
}
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren