public function convertPassword($password)
    {
        if (self::TYPE_PASSWORD_DIGEST === $this->getTypeValue()) {
            $password = $this->digestPassword($password);
        }

        return $password;
    }
public function convertPassword($password)
    {
        if (self::TYPE_PASSWORD_DIGEST === $this->getTypeValue()) {
            $password = $this->digestPassword($password);
        }

        return $password;
    }
public function convertPassword ( $ password ) { if ( self :: TYPE_PASSWORD_DIGEST === $ this -> getTypeValue ( ) ) { $ password = $ this -> digestPassword ( $ password ) ; } return $ password ; }
Returns the converted form of the password accroding to the password typeValue.

@param string $password
Returns the converted form of the password accroding to the password typeValue .