Skip to content

Commit

Permalink
fix(hw19): Изменил тип возвращаемого значения
Browse files Browse the repository at this point in the history
  • Loading branch information
Возный Роман committed Mar 15, 2024
1 parent 7f7bef2 commit 2697086
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/src/Domain/ValueObject/AbstractValueObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function getValue(): string
/**
* @param string $value
* @throws Exception
* @return void
* @return mixed Возвращаемое значение после валидации
*/
abstract protected function validation(string $value): void;
abstract protected function validation(string $value): mixed;
}
6 changes: 5 additions & 1 deletion app/src/Domain/ValueObject/Email.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@

class Email extends AbstractValueObject
{
protected function validation(string $value): void
/**
* @param string $value
* @return mixed
*/
protected function validation(string $value): mixed
{
return;
}
Expand Down
6 changes: 5 additions & 1 deletion app/src/Domain/ValueObject/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@

class Message extends AbstractValueObject
{
protected function validation(string $value): void
/**
* @param string $value
* @return mixed
*/
protected function validation(string $value): mixed
{
return;
}
Expand Down

0 comments on commit 2697086

Please sign in to comment.