From 2272c47ad92bafa39146082e051cf2e0bda6b38b Mon Sep 17 00:00:00 2001 From: Marc Morera Date: Tue, 16 Apr 2019 03:20:27 +0200 Subject: [PATCH] Added exception method and cleaned non-used --- Exception/InvalidFormatException.php | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/Exception/InvalidFormatException.php b/Exception/InvalidFormatException.php index 081834c..224e094 100644 --- a/Exception/InvalidFormatException.php +++ b/Exception/InvalidFormatException.php @@ -155,13 +155,13 @@ public static function appUUIDFormatNotValid(): self /** * Campaign format not valid. * - * @param mixed $campaignBeforeHydration + * @param mixed $interactionBeforeHydration * * @return InvalidFormatException */ - public static function campaignFormatNotValid($campaignBeforeHydration): self + public static function interactionFormatNotValid($interactionBeforeHydration): self { - return new static('Campaign Format not valid. Expecting a Campaign serialized but found malformed data'); + return new static('Interaction Format not valid. Expecting an Interaction serialized but found malformed data'); } /** @@ -176,18 +176,6 @@ public static function changesFormatNotValid($changesBeforeHydration): self return new static('Changes Format not valid. Expecting a Changes serialized but found malformed data'); } - /** - * Boost clause format not valid. - * - * @param mixed $boostClauseBeforeHydration - * - * @return InvalidFormatException - */ - public static function boostClauseFormatNotValid($boostClauseBeforeHydration): self - { - return new static('Boost clause Format not valid. Expecting a Boost clause serialized but found malformed data'); - } - /** * Token uuid format not valid. *