| Total Complexity | 3 | 
| Total Lines | 38 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 20 | class Typo3 implements \Aimeos\Base\Password\Iface  | 
            ||
| 21 | { | 
            ||
| 22 | private $hasher;  | 
            ||
| 23 | |||
| 24 | |||
| 25 | /**  | 
            ||
| 26 | * Initializes the password helper  | 
            ||
| 27 | *  | 
            ||
| 28 | * @param \TYPO3\CMS\Core\Crypto\PasswordHashing\PasswordHashInterface $hasher TYPO3 password hasher object  | 
            ||
| 29 | */  | 
            ||
| 30 | public function __construct( \TYPO3\CMS\Core\Crypto\PasswordHashing\PasswordHashInterface $hasher )  | 
            ||
| 31 | 	{ | 
            ||
| 32 | $this->hasher = $hasher;  | 
            ||
| 33 | }  | 
            ||
| 34 | |||
| 35 | |||
| 36 | /**  | 
            ||
| 37 | * Returns the hashed password  | 
            ||
| 38 | *  | 
            ||
| 39 | * @param string $password Clear text password string  | 
            ||
| 40 | * @return string Hashed password  | 
            ||
| 41 | */  | 
            ||
| 42 | public function hash( string $password ) : string  | 
            ||
| 45 | }  | 
            ||
| 46 | |||
| 47 | |||
| 48 | /**  | 
            ||
| 49 | * Verifies the password  | 
            ||
| 50 | *  | 
            ||
| 51 | * @param string $password Clear text password string  | 
            ||
| 52 | * @param string $hash Hashed password  | 
            ||
| 53 | * @return bool TRUE if password and hash match  | 
            ||
| 54 | */  | 
            ||
| 55 | public function verify( string $password, string $hash ) : bool  | 
            ||
| 58 | }  | 
            ||
| 59 | }  | 
            ||
| 60 |