protected function getSessionVarName(CustomerInterface $customer = null)
    {
        if (null === $customer || null === $customer->getId()) {
            return self::SESSION_BASE_NAME.'new';
        }

        return self::SESSION_BASE_NAME.$customer->getId();
    }
protected function getSessionVarName(CustomerInterface $customer = null)
    {
        if (null === $customer || null === $customer->getId()) {
            return self::SESSION_BASE_NAME.'new';
        }

        return self::SESSION_BASE_NAME.$customer->getId();
    }
protected function getSessionVarName ( CustomerInterface $ customer = null ) { if ( null === $ customer || null === $ customer -> getId ( ) ) { return self :: SESSION_BASE_NAME . 'new' ; } return self :: SESSION_BASE_NAME . $ customer -> getId ( ) ; }
Get the name of the session variable.

@param \Sonata\Component\Customer\CustomerInterface $customer

@return string
Get the name of the session variable .