Shopware Php Get Cookie

//Get Cookie
Shopware()->Front()->Request()->getCookie('nameofthecookie'));

//Set Cookie
 Shopware()->Front()->Response()->setCookie('nameofthecookie', 'value');
Sergiu The Man