Skip to content

Commit

Permalink
Merge pull request #128 from ker0x/feature/custom-exceptions
Browse files Browse the repository at this point in the history
[n/a] update Docblock and composer.json
  • Loading branch information
ker0x authored Oct 13, 2018
2 parents 2f5caca + 7637faf commit 6eede48
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
27 changes: 14 additions & 13 deletions src/Helper/ValidatorTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand Down Expand Up @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand Down

0 comments on commit 6eede48

Please sign in to comment.