Viewing File: /home/ubuntu/code_review/arcanist/src/ref/commit/ArcanistCommitSymbolRefInspector.php

<?php

final class ArcanistCommitSymbolRefInspector
  extends ArcanistRefInspector {

  public function getInspectFunctionName() {
    return 'commit';
  }

  public function newInspectRef(array $argv) {
    if (count($argv) !== 1) {
      throw new PhutilArgumentUsageException(
        pht(
          'Expected exactly one argument to "commit(...)" with a '.
          'commit symbol.'));
    }

    return id(new ArcanistCommitSymbolRef())
      ->setSymbol($argv[0]);
  }

}
Back to Directory File Manager