Zendesk\API\Resources\Core\RequestComments::find PHP Method

find() public method

Find a specific ticket by id or series of ids
public find ( $id = null, array $queryParams = [] ) : stdClass
$id
$queryParams array
return stdClass | null
    public function find($id = null, array $queryParams = [])
    {
        if (empty($id)) {
            $id = $this->getChainedParameter(get_class($this));
        }
        if (empty($id)) {
            throw new MissingParametersException(__METHOD__, ['id']);
        }
        if (!($requestId = $this->getChainedParameter(Requests::class))) {
            throw new MissingParametersException(__METHOD__, ['requestId']);
        }
        $route = $this->getRoute(__FUNCTION__, ['id' => $id, 'requestId' => $requestId]);
        return $this->client->get($route, $queryParams);
    }