Skip to content

Instantly share code, notes, and snippets.

@mdzwigala
Created December 4, 2020 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdzwigala/dcb3b16525fde2312eda58bb6e6e092f to your computer and use it in GitHub Desktop.
Save mdzwigala/dcb3b16525fde2312eda58bb6e6e092f to your computer and use it in GitHub Desktop.
ADR-EXAMPLE\Domain\PasswordEncoder
<?php
declare(strict_types=1);
namespace App\Domain\Service;
interface PasswordEncoder
{
public function encode(string $password): string;
public function matches(string $givenPassword, string $password): bool;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment