<?php

namespace ModulesGarden\OpenXchangeAddon\Core\Traits;

use ModulesGarden\OpenXchangeAddon\Core\ServiceLocator;

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

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