Mercurial > hg > isophonics-drupal-site
view vendor/consolidation/annotated-command/src/Hooks/StatusDeterminerInterface.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 129ea1e6d783 |
children |
line wrap: on
line source
<?php namespace Consolidation\AnnotatedCommand\Hooks; /** * A StatusDeterminer maps from a result to a status exit code. * * @deprecated. Instead of using a Status Determiner hook, commands * should simply return their exit code and result data separately * using a CommandResult object. * * @see HookManager::addStatusDeterminer() */ interface StatusDeterminerInterface { /** * Convert a result object into a status code, if * possible. Return null if the result object is unknown. * * @return null|integer */ public function determineStatusCode($result); }