You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
622 B

<?php
namespace App\Service\v3\Implementations;
use App\Constants\v3\ErrorCode;
use App\Exception\ErrorCodeException;
use App\Service\v3\Interfaces\StoreLoginServiceInterface;
class StoreLoginService implements StoreLoginServiceInterface
{
public function do($account,$password)
{
if($account == $password){
return true;
}else{
throw new ErrorCodeException(ErrorCode::STORE_LOGIN_ERROR);
}
}
public function check()
{
// TODO: Implement check() method.
}
public function undo()
{
// TODO: Implement undo() method.
}
}