1<?php 2 3final class ArcanistTestXHPASTLintSwitchHook 4 extends ArcanistXHPASTLintSwitchHook { 5 6 public function checkSwitchToken(XHPASTToken $token) { 7 if ($token->getTypeName() == 'T_STRING') { 8 switch (strtolower($token->getValue())) { 9 case 'throw_exception': 10 return true; 11 } 12 } 13 return false; 14 } 15 16} 17