-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add nickname search for nickname duplicate check
- Loading branch information
Showing
7 changed files
with
106 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
|
||
namespace App\Domain\Profile\models; | ||
|
||
use App\Domain\Common\models\AuthorizationRequestTrait; | ||
use App\Domain\Common\models\BaseDto; | ||
use Psr\Http\Message\RequestInterface; | ||
|
||
class SearchByNicknameRequest | ||
{ | ||
public ?string $nickname; | ||
private ?string $token; | ||
|
||
use AuthorizationRequestTrait; | ||
|
||
public function __construct(RequestInterface $request, array $arg) | ||
{ | ||
$this->nickname = $arg['nickname']; | ||
echo $this->getNickname().PHP_EOL; | ||
|
||
$this->token = $this->extractToken($request); | ||
} | ||
|
||
public function getNickname(): ?string | ||
{ | ||
return $this->nickname; | ||
} | ||
|
||
public function setNickname(?string $nickname): void | ||
{ | ||
$this->nickname = $nickname; | ||
} | ||
|
||
public function getToken(): ?string | ||
{ | ||
return $this->token; | ||
} | ||
|
||
public function setToken(?string $token): void | ||
{ | ||
$this->token = $token; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters