<?php
namespace OfficeBrain\Bundle\SearchBundle\ApiClient;

use Symfony\Component\DependencyInjection\ContainerInterface as Container;
use OfficeBrain\Bundle\ApiClientBundle\ApiClient\AbstractApiClient;

class SearchApiClient extends AbstractApiClient
{
    
    public function doProcess()
    {	
        switch ($this->apiCallType) {
            case 'attribute_type_info':
            	//$this->trace = true;
                $this->apiCallUrl = 'attribute/attribute-type-information';
                break;
            case 'attribute_value_info':
            	//$this->trace = true;
            	$this->apiCallUrl = 'attribute/attribute-value-information';
            	break;
            default:
                break;
        }
        if(!$this->post)
          $this->callApi();
    }
}