<?php

namespace KupShop\KupShopBundle\Util;

trait ServiceTrait
{
    // Temporary without symfony
    private static $service;

    /**
     * @return static
     */
    public static function getService()
    {
        if (!static::$service) {
            static::$service = new static();
        }

        return static::$service;
    }
}
