<?php 
namespace OfficeBrain\Bundle\UserBundle\Manager\AbstractManager;

use Symfony\Component\DependencyInjection\ContainerInterface as Container;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Translation\Translator;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Session\Session;
use Symfony\Component\HttpFoundation\Session\Flash\FlashBag;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpFoundation\JsonResponse;

abstract class BiosAbstract
{
	protected $entityManager;
	protected $session;
	protected $request;
	protected $projectSetting;
	protected $instanceId;
	protected $userId;
	
	/**
	 * @author Employee Id: 5051
	 * Initialize the required variable on class load
	 *
	 */
	
	public function __construct($entityManager, $request, $session)
	{
		$this->entityManager = $entityManager;
		$this->session = $session;
		$this->request = $request;
		$this->projectSetting = $this->request->get('project_setting');
		$this->instanceId = $this->projectSetting['instance_id'];
		$this->userId = $this->projectSetting['user_id'];
		$this->languageId = $this->projectSetting['culture_id'];
		$this->employeeInfoRepository = $this->entityManager->getRepository("OfficeBrainUserBundle:EmployeeInfo");
	}
	
	public function __destruct()
	{
		unset($this->entityManager);
		unset($this->session);
		unset($this->request);
		unset($this->projectSetting);
		unset($this->instanceId);
		unset($this->userId);
		unset($this->languageId);
		unset($this->employeeInfoRepository);
		
	}
	
	public function getEmployeeDetails($companyId)
	{
	}
}