make getSalt() abstract

This commit is contained in:
Marcin Łojewski
2018-07-02 21:06:20 +02:00
parent d3f38eed7c
commit 89598a5b36
2 changed files with 9 additions and 4 deletions

View File

@@ -56,8 +56,5 @@ abstract class AbstractCrypt extends AbstractAlgorithm
* *
* @return string The salt string. * @return string The salt string.
*/ */
protected function getSalt() protected abstract function getSalt();
{
return "";
}
} }

View File

@@ -56,4 +56,12 @@ class Crypt extends AbstractCrypt
{ {
return "Unix (Crypt)"; return "Unix (Crypt)";
} }
/**
* Not used.
*/
protected function getSalt()
{
return null;
}
} }