A man with a garotte wire that could be used for strangulation has been sentenced at York Magistrates Court