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

use Symfony\Component\HttpFoundation\Request;

/**
 *
 * @author OfficeBrain 4571 <info@officebrain.com>
 *
 * Description : Abstract Class
 *
 */
abstract class HomeSectionAbstract
{
    protected $entityManager;
    protected $request;
    protected $translator;
    protected $knpPaginator;
    protected $homeSectionRepository;
    protected $bannerImgPath;
    protected $responseArray;
    protected $subShopImagePath;
        
    /**
     *
     * @author Employee Id: 4571
     * Description : Initialize the required variable on class load
     *
     * @param : null
     *
     * @return null
     *
     * @throws null
     *
     **/
    public function __construct($entityManager, $request, $translator, $knpPaginator, $bannerImagePath, $subShopImagePath)
    {
        $this->entityManager = $entityManager;
        $this->request = $request;
        $this->translator = $translator;
        $this->knpPaginator = $knpPaginator;
                
        $this->homeSectionRepository  = $this->entityManager->getRepository('OfficeBrainHomeSectionBundle:HomeSection');
        $this->homeSectionRepository->setPaginatorService($this->knpPaginator);
        $this->bannerImgPath = $bannerImagePath;
        $this->responseArray = array();
        $this->subShopImagePath = $subShopImagePath;
        
    }
        
    /**
     *
     * @author Employee Id: 4571
     * Description : Unset the variables
     *
     * @param : null
     *
     * @return null
     *
     * @throws null
     *
     **/
    public function __destruct()
    {
        unset($this->entityManager);
        unset($this->request);
        unset($this->translator);
        unset($this->knpPaginator);
        unset($this->homeSectionRepository);
        unset($this->bannerImgPath);
        unset($this->responseArray);
        unset($this->subShopImagePath);
    }
    
    public function getHomeSection($id)
    {
    }
    public function getHomeSectionList($keywords, $page,$recordsPerPage)
    {
    }
    public function setHomeSection($section)
    {
    }
}
