Zendesk\API\Traits\Resource\Find::find PHP Method

find() public method

Find a specific ticket by id or series of ids
public find ( $id = null, array $queryParams = [], string $routeKey = __FUNCTION__ ) : null | stdClass
$id
$queryParams array
$routeKey string
return null | stdClass
    public function find($id = null, array $queryParams = [], $routeKey = __FUNCTION__)
    {
        if (empty($id)) {
            $id = $this->getChainedParameter(get_class($this));
        }
        if (empty($id)) {
            throw new MissingParametersException(__METHOD__, ['id']);
        }
        try {
            $route = $this->getRoute($routeKey, ['id' => $id]);
        } catch (RouteException $e) {
            if (!isset($this->resourceName)) {
                $this->resourceName = $this->getResourceNameFromClass();
            }
            $this->setRoute(__FUNCTION__, $this->resourceName . '/{id}.json');
            $route = $this->resourceName . '/' . $id . '.json';
        }
        return $this->client->get($route, $queryParams);
    }
Find