for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace GSoares\GoogleTrends\Result;
/**
* @author Gabriel Felipe Soares <[email protected]>
*/
class ExploreResult
{
public const ID_INTEREST_OVER_TIME = 'TIMESERIES';
public const ID_INTEREST_BY_REGION = 'GEO_MAP';
public const ID_RELATED_TOPICS = 'RELATED_TOPICS';
public const ID_RELATED_QUERIES = 'RELATED_QUERIES';
* @var string
private $id;
private $token;
public function __construct(string $id, string $token)
$this->id = $id;
$this->token = $token;
}
public function getToken(): string
return $this->token;
public function isRelatedQueriesSearch(): bool
return self::ID_RELATED_QUERIES === $this->id;
public function isRelatedTopicsSearch(): bool
return self::ID_RELATED_TOPICS === $this->id;
public function isInterestOverTimeSearch(): bool
return self::ID_INTEREST_OVER_TIME === $this->id;