<?php

namespace ModulesGarden\Servers\OpenXchange\Core\Traits;

use ModulesGarden\Servers\OpenXchange\Core\ServiceLocator;

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

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