<?php

namespace Sso\BackendBundle\Api\Import;

use Symfony\Component\DependencyInjection\ContainerInterface as Container;
use Sso\BackendBundle\Api\Manager as ApiManager;

class Index
{
    /**
     * @var array
     */
    protected $setter;

    /**
     * @var ApiManager
     */
    protected $apiM;


    public function __construct(ApiManager $apiM)
    {
        $this->apiM = $apiM;

    }


    /**
     * @return Worker\Worker
     */
    public function worker()
    {
        if (!isset($this->setter['worker'])) {
            $this->setter['worker'] = new Worker\Worker($this->apiM);
        }
        return $this->setter['worker'];
    }

}