private static function getDescriptionFromConfig(array $config)
    {
        $data = isset($config['descriptionPath']) && is_readable($config['descriptionPath'])
            ? include $config['descriptionPath']
            : include __DIR__ . '/receiptful-api.php';

        return new Description($data);
    }
private static function getDescriptionFromConfig(array $config)
    {
        $data = isset($config['descriptionPath']) && is_readable($config['descriptionPath'])
            ? include $config['descriptionPath']
            : include __DIR__ . '/receiptful-api.php';

        return new Description($data);
    }
private static function getDescriptionFromConfig ( array $ config ) { $ data = isset ( $ config [ 'descriptionPath' ] ) && is_readable ( $ config [ 'descriptionPath' ] ) ? include $ config [ 'descriptionPath' ] : include __DIR__ . '/receiptful-api.php' ; return new Description ( $ data ) ; }
Loads the api service description

@param array $config
@return Description
Loads the api service description