for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace IBM\Watson\Service;
use IBM\Watson\Common\AbstractService as BaseService;
use IBM\Watson\Service\ToneAnalyzer\Message\AnalyzeToneRequest;
/**
* This class is the main class for interacting with
* the IBM Watson Tone Analyzer service
*
* @package IBM\Watson\ToneAnalyzer
*/
class ToneAnalyzer extends BaseService
{
* The version is the date for the version of the API that you want to call.
* @param string $value Set the API version to use
* @return $this
public function setVersion($value)
return $this->setParameter('version', $value);
}
* Get the version of the API previously set
* @return string
public function getVersion()
return $this->getParameter('version');
* Analyze tone
* @param array $parameters
* @return \IBM\Watson\Common\Message\AbstractRequest
public function analyzeTone(array $parameters = [])
return $this->createRequest(AnalyzeToneRequest::class, $parameters);