Stop in for a cup of coffee

so can someone tell me how a former employer can legally cash out your shares in their company stock after you leave a company? especially since the shares were paid out of my hourly wage? And do so without notice? And then they keep the money?