public static function getCustomFieldOption(JiraClient $client, $id)
    {
        $path = "/customFieldOption/{$id}";

        try {
            $data = $client->callGet($path)->getData();
            $data['id'] = $id;

            return new CustomFieldOption($client, $data);
        } catch (Exception $e) {
            throw new JiraException("Failed to get custom field option", $e);
        }
    }
public static function getCustomFieldOption(JiraClient $client, $id)
    {
        $path = "/customFieldOption/{$id}";

        try {
            $data = $client->callGet($path)->getData();
            $data['id'] = $id;

            return new CustomFieldOption($client, $data);
        } catch (Exception $e) {
            throw new JiraException("Failed to get custom field option", $e);
        }
    }
public static function getCustomFieldOption ( JiraClient $ client , $ id ) { $ path = "/customFieldOption/{$id}" ; try { $ data = $ client -> callGet ( $ path ) -> getData ( ) ; $ data [ 'id' ] = $ id ; return new CustomFieldOption ( $ client , $ data ) ; } catch ( Exception $ e ) { throw new JiraException ( "Failed to get custom field option" , $ e ) ; } }
Returns a full representation of the Custom Field Option that has the given id.

@param JiraClient $client
@param int $id
@return \JiraClient\Resource\CustomFieldOption
@throws JiraException
Returns a full representation of the Custom Field Option that has the given id .