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.

28 lines
622 B

5 years ago
5 years ago
  1. <?php
  2. namespace App\Service\v3\Implementations;
  3. use App\Constants\v3\ErrorCode;
  4. use App\Exception\ErrorCodeException;
  5. use App\Service\v3\Interfaces\StoreLoginServiceInterface;
  6. class StoreLoginService implements StoreLoginServiceInterface
  7. {
  8. public function do($account,$password)
  9. {
  10. if($account == $password){
  11. return true;
  12. }else{
  13. throw new ErrorCodeException(ErrorCode::STORE_LOGIN_ERROR);
  14. }
  15. }
  16. public function check()
  17. {
  18. // TODO: Implement check() method.
  19. }
  20. public function undo()
  21. {
  22. // TODO: Implement undo() method.
  23. }
  24. }