1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2025-02-16 00:38:37 +01:00
phorge-arcanist/src/lint/linter/xhpast/ArcanistXHPASTLintSwitchHook.php
Joshua Spence 956bfa701c Extend from Phobject
Summary: All base classes should extend from `Phobject` or some other classes. See D13275 for some explanation.

Test Plan: `arc unit`

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D13281
2015-06-15 15:47:33 +10:00

14 lines
369 B
PHP

<?php
/**
* You can extend this class and set `xhpast.switchhook` in your `.arclint`
* to have an opportunity to override results for linting `switch` statements.
*/
abstract class ArcanistXHPASTLintSwitchHook extends Phobject {
/**
* @return bool True if token safely ends the block.
*/
abstract public function checkSwitchToken(XHPASTToken $token);
}