Returns the content type for this endpoint.

@param string $method Method for this command.

@return string
349987
protected function getContentType($method)
    {
        // Just to make PHPMD happy.
        $method = null;
        $file = $this->getArgument("file");
        if (!is_null($file)) {
            return "text/csv";
        }
        $soundFile = $this->getArgument("sound_file");
        if (!is_null($soundFile)) {
            return "audio/mpeg";
        }
        return 'application/json';
    }
822804
protected function getCaptureType(string $method): string
    {
        $paymentMethodsCaptureTypes = $this->config->getPaymentMethodsCaptureTypes();

        return $paymentMethodsCaptureTypes[$method] ?? '';
    }
793905
protected function getEndpoint($method)
    {
        $endpoint = "sounds";
        $soundId = $this->getArgument("id");
        if (!is_null($soundId)) {
            $endpoint .= "/$soundId";
            $this->delArgument("id");
        }
        $queryString = array();
        $name = $this->getArgument("name");
        if (!is_null($name)) {
            $queryString['name'] = $name;
            $this->delArgument("name");
        }
        $description = $this->getArgument("description");
        if (!is_null($description)) {
            $queryString['description'] = $description;
            $this->delArgument("description");
        }
        if (!empty($queryString)) {
            $queryString = http_build_query($queryString);
            return "$endpoint?$queryString";
        }
        return $endpoint;
    }
1347056
protected function getEndpoint($method)
    {
        $endpoint = "sms";
        $searchParams = $this->getArgument("search_params");
        if (!is_null($searchParams)) {
            $queryString = http_build_query($searchParams);
            $this->delArgument("search_params");
            return "$endpoint?$queryString";
        }
        $operationId = $this->getArgument("id");
        if (!is_null($operationId)) {
            $endpoint .= "/$operationId";
            $this->delArgument("id");
        }
        return $endpoint;
    }
532900
protected function getEndpoint($method)
    {
        $endpoint = "credit_cards";
        $cardId = $this->getArgument("id");
        if (!is_null($cardId)) {
            $endpoint .= "/$cardId";
            $this->delArgument("id");
        }
        return $endpoint;
    }
109995
public function getCSS($method) {
		$array_css = parent::getCSS($method);
		$local_css = CSS::getPath('01-jquery-ui.css');
		$array_css[] = $local_css;
		return $array_css;
	}
744971
protected function getEndpoint($method)
    {
        $endpoint = 'inspect';
        $number = $this->getArgument("number");
        if (!is_null($number)) {
            $endpoint .= "/$number";
            $this->delArgument("number");
        }
        return $endpoint;
    }
398689
public function generateMethod(Method $method): string
    {
        return $this->twig->render('method.html', [
            'method' => $method,
            'namespace' => $this->getNamespace(),
            'full_namespace' => $this->getFullNamespace()
        ]);
    }
1355761
public function getMethod ($method)
	{
		
		// Get methods
		
		$this->getMethods ();
		
		// Loop through the methods
		
		foreach ($this->methods as $obj)
		{
			
			// If the method names match return 
			
			if (strtolower ($obj->get ('name')) == strtolower ($method))
			{
				return $obj;
			}
			
		}
		
		// Return FALSE
		
		return FALSE;
		
	}
856334
public function getContentType()
    {
        if (isset($this->responseInfo['content_type'])) {
            $contentType = $this->responseInfo['content_type'];
        } else {
            $contentType = isset($this->responseHeaders['Content-Type']) ? $this->responseHeaders['Content-Type'] : null;
        }
        
        if ($contentType) {
            $contentTypeParts = preg_split('/\s*[;,]\s*/', $contentType);
            return strtolower($contentTypeParts[0]);
        }
        
        return null;
    }
572368
public function getMethod($method)
    {
        $method = \strtoupper($method);

        if (!isset($this->methods[$method])) {
            throw new \Exception('Method not found');
        }

        return $this->methods[$method];
    }
1161652
protected function getEndpoint($method)
    {
        $endpoint = 'me/password';
        $reset = $this->getArgument('reset');
        $nonce = $this->getArgument('nonce');
        if (!is_null($reset)) {
            $endpoint .= '/reset';
            $this->delArgument('reset');
        }
        if (!is_null($nonce)) {
            $endpoint .= "/$nonce";
            $this->delArgument('nonce');
        }
        return $endpoint;
    }
598351
final public function get($method = null) {

        if ( empty($method) ) {

            $return = $this->rpc_methods;

        } else if ( array_key_exists($method, $this->rpc_methods) ) {

            $return = $this->rpc_methods[$method];

        } else {

            $return = null;

        }

        return $return;

    }
1090769
public function methodDescription( $method )
    {
        return array_key_exists( $method, $this->FunctionList ) ? ( array_key_exists( $method, $this->FunctionDescription ) ? $this->FunctionDescription[$method] : '' ) : false;
    }
1250902
protected function getEndpoint($method)
    {
        $endpoint = "summary";
        $queryString = array();
        $dateFrom = $this->getArgument("date_from");
        if (!is_null($dateFrom)) {
            $queryString['date_from'] = $dateFrom;
            $this->delArgument("date_from");
        }
        $dateTo = $this->getArgument("date_to");
        if (!is_null($dateTo)) {
            $queryString['date_to'] = $dateTo;
            $this->delArgument("date_to");
        }
        $granularity = $this->getArgument("granularity");
        if (!is_null($granularity)) {
            $queryString['granularity'] = $granularity;
            $this->delArgument("granularity");
        }
        if (!empty($queryString)) {
            $queryString = http_build_query($queryString);
            $endpoint .= "?$queryString";
        }
        return $endpoint;
    }
1020211
public function guessMethodDescription($method)
    {
        if ($method->getName() === '__construct') {
            return 'Constructor.';
        } elseif ($method->getName() === 'init') {
            return 'Initializes.';
        } elseif ($method->getName() === '__sleep') {
            return 'Prepares object for serialization.';
        } elseif ($method->getName() === '__toString') {
            return 'Converts object to string.';
        } elseif (substr($method->getName(), 0, 3) === 'get') {
            return 'Get ' . strtolower(Inflector::titleize(substr($method->getName(), 3)));
        } elseif (substr($method->getName(), 0, 3) === 'set') {
            return 'Set ' . strtolower(Inflector::titleize(substr($method->getName(), 3)));
        }

        return '__method_' . $method->getName() . '_description__';
    }
1287757
public function getOption($method, $contentType)
    {
        if (isset($this->options[$method])) {
            foreach ($this->options[$method] as $ct) {
                if (strpos($contentType, $ct) !== false) {
                    return $ct;
                }
            }
            return null;
        } else {
            return null;
        }
    }