public function getCustomerLang()
    {
        $lang = $this->getLangModel();

        if ($lang === null) {
            $lang = (new LangQuery)
                ->filterByByDefault(1)
                ->findOne()
            ;
        }

        return $lang;
    }
public function getCustomerLang()
    {
        $lang = $this->getLangModel();

        if ($lang === null) {
            $lang = (new LangQuery)
                ->filterByByDefault(1)
                ->findOne()
            ;
        }

        return $lang;
    }
public function getCustomerLang ( ) { $ lang = $ this -> getLangModel ( ) ; if ( $ lang === null ) { $ lang = ( new LangQuery ) -> filterByByDefault ( 1 ) -> findOne ( ) ; } return $ lang ; }
Return the customer lang, or the default one if none is defined.

@return \Thelia\Model\Lang Lang model
Return the customer lang or the default one if none is defined .