<?php

namespace ModulesGarden\Servers\ZimbraEmail\Core\Traits;

use ModulesGarden\Servers\ZimbraEmail\Core\ServiceLocator;

trait Lang
{
    /**
     * @var null|\ModulesGarden\Servers\ZimbraEmail\Core\Lang\Lang
     */
    protected $lang = null;

    public function loadLang()
    {
        if ($this->lang === null)
        {
            $this->lang = ServiceLocator::call('lang');
        }
    }
}