protected function getCustomer()
    {
        if (null === $this->customer) {
            $this->customer = $this->getSession() ? $this->getSession()->getCustomerUser() : null;
        }

        return $this->customer;
    }
protected function getCustomer()
    {
        if (null === $this->customer) {
            $this->customer = $this->getSession() ? $this->getSession()->getCustomerUser() : null;
        }

        return $this->customer;
    }
protected function getCustomer ( ) { if ( null === $ this -> customer ) { $ this -> customer = $ this -> getSession ( ) ? $ this -> getSession ( ) -> getCustomerUser ( ) : null ; } return $ this -> customer ; }
Get the current customer logged in. If no customer is logged return null

@return \Thelia\Model\Customer|null
Get the current customer logged in . If no customer is logged return null