From 7637faf14abc5f3879ad4cebddcd09178ca8606b Mon Sep 17 00:00:00 2001 From: Romain Monteil Date: Sun, 14 Oct 2018 01:02:28 +0200 Subject: [PATCH] [n/a] update Docblock and composer.json --- composer.json | 1 - src/Helper/ValidatorTrait.php | 27 ++++++++++++++------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/composer.json b/composer.json index 3a6a5b1..7864a68 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,6 @@ "php": ">=7.1.0", "ext-json": "*", "guzzlehttp/guzzle": "^6.2", - "psr/http-client": "^0.3.0", "psr/http-message": "^1.0" }, "require-dev": { diff --git a/src/Helper/ValidatorTrait.php b/src/Helper/ValidatorTrait.php index 2d4d582..f8d85ac 100644 --- a/src/Helper/ValidatorTrait.php +++ b/src/Helper/ValidatorTrait.php @@ -28,7 +28,7 @@ trait ValidatorTrait /** * @param string $value * - * @throws \Kerox\Messenger\Exception\MessengerException + * @throws \Kerox\Messenger\Exception\InvalidColorException */ protected function isValidColor(string $value): void { @@ -41,7 +41,7 @@ protected function isValidColor(string $value): void * @param string $value * @param int $length * - * @throws \Kerox\Messenger\Exception\MessengerException + * @throws \Kerox\Messenger\Exception\InvalidStringException */ protected function isValidString(string $value, int $length = 20): void { @@ -53,7 +53,7 @@ protected function isValidString(string $value, int $length = 20): void /** * @param string $value * - * @throws \Kerox\Messenger\Exception\MessengerException + * @throws \Kerox\Messenger\Exception\InvalidUrlException */ protected function isValidUrl(string $value): void { @@ -68,7 +68,7 @@ protected function isValidUrl(string $value): void /** * @param string $value * - * @throws \Kerox\Messenger\Exception\MessengerException + * @throws \Kerox\Messenger\Exception\InvalidLocaleException */ protected function isValidLocale(string $value): void { @@ -83,7 +83,7 @@ protected function isValidLocale(string $value): void /** * @param string $value * - * @throws \Kerox\Messenger\Exception\MessengerException + * @throws \Kerox\Messenger\Exception\InvalidCountryException */ protected function isValidCountry(string $value): void { @@ -98,7 +98,7 @@ protected function isValidCountry(string $value): void /** * @param string $value * - * @throws \Kerox\Messenger\Exception\MessengerException + * @throws \Kerox\Messenger\Exception\InvalidDateTimeException */ protected function isValidDateTime(string $value): void { @@ -115,7 +115,7 @@ protected function isValidDateTime(string $value): void * @param int $maxSize * @param int $minSize * - * @throws \Kerox\Messenger\Exception\MessengerException + * @throws \Kerox\Messenger\Exception\InvalidArrayException */ protected function isValidArray(array $array, int $maxSize, ?int $minSize = null): void { @@ -131,7 +131,7 @@ protected function isValidArray(array $array, int $maxSize, ?int $minSize = null /** * @param string $value * - * @throws \Kerox\Messenger\Exception\MessengerException + * @throws \Kerox\Messenger\Exception\InvalidCurrencyException */ protected function isValidCurrency(string $value): void { @@ -150,7 +150,7 @@ protected function isValidCurrency(string $value): void * @param string $filename * @param array $allowedExtension * - * @throws \Kerox\Messenger\Exception\MessengerException + * @throws \Kerox\Messenger\Exception\InvalidExtensionException */ protected function isValidExtension(string $filename, array $allowedExtension): void { @@ -168,7 +168,7 @@ protected function isValidExtension(string $filename, array $allowedExtension): * @param \Kerox\Messenger\Model\Common\Button\AbstractButton[] $buttons * @param array $allowedButtonsType * - * @throws \Kerox\Messenger\Exception\MessengerException + * @throws \Kerox\Messenger\Exception\InvalidClassException */ protected function isValidButtons(array $buttons, array $allowedButtonsType): void { @@ -216,7 +216,7 @@ protected function isValidMessage($message): Message /** * @param string $action * - * @throws \Kerox\Messenger\Exception\MessengerException + * @throws \Kerox\Messenger\Exception\InvalidKeyException */ protected function isValidSenderAction(string $action): void { @@ -232,7 +232,7 @@ protected function isValidSenderAction(string $action): void /** * @param string $notificationType * - * @throws \Kerox\Messenger\Exception\MessengerException + * @throws \Kerox\Messenger\Exception\InvalidTypeException */ protected function isValidNotificationType(string $notificationType): void { @@ -249,7 +249,8 @@ protected function isValidNotificationType(string $notificationType): void * @param string $tag * @param \Kerox\Messenger\Model\Message $message * - * @throws \Kerox\Messenger\Exception\MessengerException + * @throws \Kerox\Messenger\Exception\InvalidClassException + * @throws \Kerox\Messenger\Exception\InvalidKeyException */ protected function isValidTag(string $tag, Message $message = null): void {