Extend from Phobject

Summary: All classes should extend from some other class. See D13275 for some explanation.

Test Plan: `arc unit`

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D13283
This commit is contained in:
Joshua Spence
2015-06-15 18:02:26 +10:00
parent 2d5f3d9e5a
commit b6d745b666
197 changed files with 422 additions and 199 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -5,7 +5,7 @@
* @task cookie Managing Cookies * @task cookie Managing Cookies
* @task cluster Working With a Phabricator Cluster * @task cluster Working With a Phabricator Cluster
*/ */
final class AphrontRequest { final class AphrontRequest extends Phobject {
// NOTE: These magic request-type parameters are automatically included in // NOTE: These magic request-type parameters are automatically included in
// certain requests (e.g., by phabricator_form(), JX.Request, // certain requests (e.g., by phabricator_form(), JX.Request,
@@ -27,6 +27,7 @@ final class AphrontRequest {
private $user; private $user;
private $applicationConfiguration; private $applicationConfiguration;
private $uriData; private $uriData;
private $cookiePrefix;
public function __construct($host, $path) { public function __construct($host, $path) {
$this->host = $host; $this->host = $host;

View File

@@ -1,6 +1,6 @@
<?php <?php
final class AphrontURIMapper { final class AphrontURIMapper extends Phobject {
private $map; private $map;

View File

@@ -3,7 +3,7 @@
/** /**
* @task routing URI Routing * @task routing URI Routing
*/ */
abstract class AphrontApplicationConfiguration { abstract class AphrontApplicationConfiguration extends Phobject {
private $request; private $request;
private $host; private $host;

View File

@@ -1,6 +1,6 @@
<?php <?php
abstract class AphrontResponse { abstract class AphrontResponse extends Phobject {
private $request; private $request;
private $cacheable = false; private $cacheable = false;

View File

@@ -11,7 +11,7 @@
* @task write Writing Response Components * @task write Writing Response Components
* @task emit Emitting the Response * @task emit Emitting the Response
*/ */
abstract class AphrontHTTPSink { abstract class AphrontHTTPSink extends Phobject {
/* -( Writing Response Components )---------------------------------------- */ /* -( Writing Response Components )---------------------------------------- */

View File

@@ -1,6 +1,6 @@
<?php <?php
final class AphlictDropdownDataQuery { final class AphlictDropdownDataQuery extends Phobject {
private $viewer; private $viewer;
private $notificationData; private $notificationData;

View File

@@ -1,6 +1,6 @@
<?php <?php
final class PhabricatorAuditActionConstants { final class PhabricatorAuditActionConstants extends Phobject {
const CONCERN = 'concern'; const CONCERN = 'concern';
const ACCEPT = 'accept'; const ACCEPT = 'accept';

View File

@@ -1,6 +1,6 @@
<?php <?php
final class PhabricatorAuditCommitStatusConstants { final class PhabricatorAuditCommitStatusConstants extends Phobject {
const NONE = 0; const NONE = 0;
const NEEDS_AUDIT = 1; const NEEDS_AUDIT = 1;

View File

@@ -1,6 +1,6 @@
<?php <?php
final class PhabricatorAuditStatusConstants { final class PhabricatorAuditStatusConstants extends Phobject {
const NONE = ''; const NONE = '';
const AUDIT_NOT_REQUIRED = 'audit-not-required'; const AUDIT_NOT_REQUIRED = 'audit-not-required';

View File

@@ -1,6 +1,7 @@
<?php <?php
final class PhabricatorAuditInlineComment final class PhabricatorAuditInlineComment
extends Phobject
implements PhabricatorInlineCommentInterface { implements PhabricatorInlineCommentInterface {
private $proxy; private $proxy;

View File

@@ -1,3 +1,3 @@
<?php <?php
final class PhabricatorAuthHighSecurityToken {} final class PhabricatorAuthHighSecurityToken extends Phobject {}

View File

@@ -1,6 +1,6 @@
<?php <?php
abstract class PhabricatorAuthProvider { abstract class PhabricatorAuthProvider extends Phobject {
private $providerConfig; private $providerConfig;

View File

@@ -8,7 +8,9 @@
* @task fact Fact Integration * @task fact Fact Integration
* @task meta Application Management * @task meta Application Management
*/ */
abstract class PhabricatorApplication implements PhabricatorPolicyInterface { abstract class PhabricatorApplication
extends Phobject
implements PhabricatorPolicyInterface {
const MAX_STATUS_ITEMS = 100; const MAX_STATUS_ITEMS = 100;

View File

@@ -7,7 +7,7 @@
* @task setup Setup Cache * @task setup Setup Cache
* @task compress Compression * @task compress Compression
*/ */
final class PhabricatorCaches { final class PhabricatorCaches extends Phobject {
private static $requestCache; private static $requestCache;

View File

@@ -10,7 +10,7 @@
* a Sunday -> Saturday list, whilest the profile view shows a more simple * a Sunday -> Saturday list, whilest the profile view shows a more simple
* seven day rolling list of events. * seven day rolling list of events.
*/ */
final class CalendarTimeUtil { final class CalendarTimeUtil extends Phobject {
public static function getCalendarEventEpochs( public static function getCalendarEventEpochs(
PhabricatorUser $user, PhabricatorUser $user,

View File

@@ -4,7 +4,7 @@
* Indirection layer which provisions for a terrifying future where we need to * Indirection layer which provisions for a terrifying future where we need to
* build multiple resource responses per page. * build multiple resource responses per page.
*/ */
final class CelerityAPI { final class CelerityAPI extends Phobject {
private static $response; private static $response;

View File

@@ -6,7 +6,7 @@
* not need to invoke it directly; instead, you call higher-level Celerity APIs * not need to invoke it directly; instead, you call higher-level Celerity APIs
* and it uses the resource map to satisfy your requests. * and it uses the resource map to satisfy your requests.
*/ */
final class CelerityResourceMap { final class CelerityResourceMap extends Phobject {
private static $instances = array(); private static $instances = array();
@@ -16,6 +16,7 @@ final class CelerityResourceMap {
private $packageMap; private $packageMap;
private $nameMap; private $nameMap;
private $hashMap; private $hashMap;
private $componentMap;
public function __construct(CelerityResources $resources) { public function __construct(CelerityResources $resources) {
$this->resources = $resources; $this->resources = $resources;

View File

@@ -1,6 +1,6 @@
<?php <?php
final class CelerityResourceMapGenerator { final class CelerityResourceMapGenerator extends Phobject {
private $debug = false; private $debug = false;
private $resources; private $resources;

View File

@@ -1,6 +1,6 @@
<?php <?php
final class CelerityResourceTransformer { final class CelerityResourceTransformer extends Phobject {
private $minify; private $minify;
private $rawURIMap; private $rawURIMap;

View File

@@ -1,6 +1,6 @@
<?php <?php
final class CeleritySpriteGenerator { final class CeleritySpriteGenerator extends Phobject {
public function buildMenuSheet() { public function buildMenuSheet() {
$sprites = array(); $sprites = array();

View File

@@ -5,7 +5,7 @@
* @{function:require_celerity_resource}, and then builds appropriate HTML or * @{function:require_celerity_resource}, and then builds appropriate HTML or
* Ajax responses. * Ajax responses.
*/ */
final class CelerityStaticResourceResponse { final class CelerityStaticResourceResponse extends Phobject {
private $symbols = array(); private $symbols = array();
private $needsResolve = true; private $needsResolve = true;

View File

@@ -3,7 +3,7 @@
/** /**
* Defines the location of static resources. * Defines the location of static resources.
*/ */
abstract class CelerityResources { abstract class CelerityResources extends Phobject {
private $map; private $map;

View File

@@ -8,9 +8,10 @@
* $result = $call->execute(); * $result = $call->execute();
* *
*/ */
final class ConduitCall { final class ConduitCall extends Phobject {
private $method; private $method;
private $handler;
private $request; private $request;
private $user; private $user;

View File

@@ -1,6 +1,6 @@
<?php <?php
final class ConduitAPIRequest { final class ConduitAPIRequest extends Phobject {
protected $params; protected $params;
private $user; private $user;

View File

@@ -1,6 +1,6 @@
<?php <?php
final class ConduitAPIResponse { final class ConduitAPIResponse extends Phobject {
private $result; private $result;
private $errorCode; private $errorCode;

View File

@@ -1,6 +1,6 @@
<?php <?php
abstract class PhabricatorSetupCheck { abstract class PhabricatorSetupCheck extends Phobject {
private $issues; private $issues;

View File

@@ -1,6 +1,6 @@
<?php <?php
abstract class PhabricatorConfigOptionType { abstract class PhabricatorConfigOptionType extends Phobject {
public function validateOption(PhabricatorConfigOption $option, $value) { public function validateOption(PhabricatorConfigOption $option, $value) {
return; return;

View File

@@ -1,6 +1,6 @@
<?php <?php
final class PhabricatorSetupIssue { final class PhabricatorSetupIssue extends Phobject {
private $issueKey; private $issueKey;
private $name; private $name;

View File

@@ -1,6 +1,6 @@
<?php <?php
final class PhabricatorConfigJSON { final class PhabricatorConfigJSON extends Phobject {
/** /**
* Properly format a JSON value. * Properly format a JSON value.
* *

View File

@@ -1,6 +1,6 @@
<?php <?php
final class ConpherenceTransactionRenderer { final class ConpherenceTransactionRenderer extends Phobject {
public static function renderTransactions( public static function renderTransactions(
PhabricatorUser $user, PhabricatorUser $user,

View File

@@ -1,3 +1,3 @@
<?php <?php
abstract class ConpherenceConstants {} abstract class ConpherenceConstants extends Phobject {}

View File

@@ -1,6 +1,6 @@
<?php <?php
final class DarkConsoleCore { final class DarkConsoleCore extends Phobject {
private $plugins = array(); private $plugins = array();
const STORAGE_VERSION = 1; const STORAGE_VERSION = 1;

View File

@@ -1,6 +1,6 @@
<?php <?php
abstract class DarkConsolePlugin { abstract class DarkConsolePlugin extends Phobject {
private $data; private $data;
private $request; private $request;

View File

@@ -1,6 +1,6 @@
<?php <?php
final class DarkConsoleErrorLogPluginAPI { final class DarkConsoleErrorLogPluginAPI extends Phobject {
private static $errors = array(); private static $errors = array();

View File

@@ -4,7 +4,7 @@
* @phutil-external-symbol function xhprof_enable * @phutil-external-symbol function xhprof_enable
* @phutil-external-symbol function xhprof_disable * @phutil-external-symbol function xhprof_disable
*/ */
final class DarkConsoleXHProfPluginAPI { final class DarkConsoleXHProfPluginAPI extends Phobject {
private static $profilerStarted; private static $profilerStarted;
private static $profilerRunning; private static $profilerRunning;

View File

@@ -1,6 +1,6 @@
<?php <?php
final class PhabricatorDashboardLayoutConfig { final class PhabricatorDashboardLayoutConfig extends Phobject {
const MODE_FULL = 'layout-mode-full'; const MODE_FULL = 'layout-mode-full';
const MODE_HALF_AND_HALF = 'layout-mode-half-and-half'; const MODE_HALF_AND_HALF = 'layout-mode-half-and-half';

View File

@@ -4,7 +4,7 @@
* Can't find a good place for this, so I'm putting it in the most notably * Can't find a good place for this, so I'm putting it in the most notably
* wrong place. * wrong place.
*/ */
final class DifferentialGetWorkingCopy { final class DifferentialGetWorkingCopy extends Phobject {
/** /**
* Creates and/or cleans a workspace for the requested repo. * Creates and/or cleans a workspace for the requested repo.

View File

@@ -1,6 +1,6 @@
<?php <?php
final class DifferentialAction { final class DifferentialAction extends Phobject {
const ACTION_CLOSE = 'commit'; const ACTION_CLOSE = 'commit';
const ACTION_COMMENT = 'none'; const ACTION_COMMENT = 'none';

View File

@@ -1,6 +1,6 @@
<?php <?php
final class DifferentialChangeType { final class DifferentialChangeType extends Phobject {
const TYPE_ADD = 1; const TYPE_ADD = 1;
const TYPE_CHANGE = 2; const TYPE_CHANGE = 2;

View File

@@ -1,6 +1,6 @@
<?php <?php
final class DifferentialLintStatus { final class DifferentialLintStatus extends Phobject {
const LINT_NONE = 0; const LINT_NONE = 0;
const LINT_OKAY = 1; const LINT_OKAY = 1;

View File

@@ -1,6 +1,6 @@
<?php <?php
final class DifferentialReviewerStatus { final class DifferentialReviewerStatus extends Phobject {
const STATUS_BLOCKING = 'blocking'; const STATUS_BLOCKING = 'blocking';
const STATUS_ADDED = 'added'; const STATUS_ADDED = 'added';

View File

@@ -1,7 +1,7 @@
<?php <?php
// TODO: Unify with similar Repository constants // TODO: Unify with similar Repository constants
final class DifferentialRevisionControlSystem { final class DifferentialRevisionControlSystem extends Phobject {
const SVN = 'svn'; const SVN = 'svn';
const GIT = 'git'; const GIT = 'git';

View File

@@ -6,7 +6,7 @@
* application. * application.
*/ */
final class DifferentialRevisionStatus { final class DifferentialRevisionStatus extends Phobject {
const COLOR_STATUS_DEFAULT = 'status'; const COLOR_STATUS_DEFAULT = 'status';
const COLOR_STATUS_DARK = 'status-dark'; const COLOR_STATUS_DARK = 'status-dark';

View File

@@ -1,6 +1,6 @@
<?php <?php
final class DifferentialUnitStatus { final class DifferentialUnitStatus extends Phobject {
const UNIT_NONE = 0; const UNIT_NONE = 0;
const UNIT_OKAY = 1; const UNIT_OKAY = 1;

View File

@@ -1,6 +1,6 @@
<?php <?php
final class DifferentialUnitTestResult { final class DifferentialUnitTestResult extends Phobject {
const RESULT_PASS = 'pass'; const RESULT_PASS = 'pass';
const RESULT_FAIL = 'fail'; const RESULT_FAIL = 'fail';

View File

@@ -1,6 +1,6 @@
<?php <?php
abstract class DifferentialLandingStrategy { abstract class DifferentialLandingStrategy extends Phobject {
abstract public function processLandRequest( abstract public function processLandRequest(
AphrontRequest $request, AphrontRequest $request,

View File

@@ -1,6 +1,6 @@
<?php <?php
final class DifferentialChangesetParser { final class DifferentialChangesetParser extends Phobject {
const HIGHLIGHT_BYTE_LIMIT = 262144; const HIGHLIGHT_BYTE_LIMIT = 262144;
@@ -55,6 +55,8 @@ final class DifferentialChangesetParser {
private $rangeEnd; private $rangeEnd;
private $mask; private $mask;
private $highlightEngine;
public function setRange($start, $end) { public function setRange($start, $end) {
$this->rangeStart = $start; $this->rangeStart = $start;
$this->rangeEnd = $end; $this->rangeEnd = $end;

View File

@@ -19,7 +19,7 @@
* @task support Support Methods * @task support Support Methods
* @task internal Internals * @task internal Internals
*/ */
final class DifferentialCommitMessageParser { final class DifferentialCommitMessageParser extends Phobject {
private $labelMap; private $labelMap;
private $titleKey; private $titleKey;

View File

@@ -1,6 +1,6 @@
<?php <?php
final class DifferentialHunkParser { final class DifferentialHunkParser extends Phobject {
private $oldLines; private $oldLines;
private $newLines; private $newLines;

View File

@@ -1,6 +1,6 @@
<?php <?php
abstract class DifferentialChangesetRenderer { abstract class DifferentialChangesetRenderer extends Phobject {
private $user; private $user;
private $changeset; private $changeset;

View File

@@ -1,5 +1,6 @@
<?php <?php
final class DifferentialRawDiffRenderer {
final class DifferentialRawDiffRenderer extends Phobject {
private $changesets; private $changesets;
private $format = 'unified'; private $format = 'unified';

View File

@@ -1,6 +1,7 @@
<?php <?php
final class DifferentialInlineComment final class DifferentialInlineComment
extends Phobject
implements PhabricatorInlineCommentInterface { implements PhabricatorInlineCommentInterface {
private $proxy; private $proxy;

View File

@@ -1,6 +1,6 @@
<?php <?php
final class DifferentialReviewer { final class DifferentialReviewer extends Phobject {
private $reviewerPHID; private $reviewerPHID;
private $status; private $status;

View File

@@ -1,6 +1,6 @@
<?php <?php
final class DifferentialChangesetFileTreeSideNavBuilder { final class DifferentialChangesetFileTreeSideNavBuilder extends Phobject {
private $title; private $title;
private $baseURI; private $baseURI;

View File

@@ -1,6 +1,6 @@
<?php <?php
final class DiffusionLintSaveRunner { final class DiffusionLintSaveRunner extends Phobject {
private $arc = 'arc'; private $arc = 'arc';
private $severity = ArcanistLintSeverity::SEVERITY_ADVICE; private $severity = ArcanistLintSeverity::SEVERITY_ADVICE;
private $all = false; private $all = false;

View File

@@ -1,6 +1,6 @@
<?php <?php
final class DiffusionBrowseResultSet { final class DiffusionBrowseResultSet extends Phobject {
const REASON_IS_FILE = 'is-file'; const REASON_IS_FILE = 'is-file';
const REASON_IS_DELETED = 'is-deleted'; const REASON_IS_DELETED = 'is-deleted';

View File

@@ -1,6 +1,6 @@
<?php <?php
final class DiffusionFileContent { final class DiffusionFileContent extends Phobject {
private $corpus; private $corpus;
private $blameDict; private $blameDict;

View File

@@ -1,6 +1,6 @@
<?php <?php
final class DiffusionGitBranch { final class DiffusionGitBranch extends Phobject {
const DEFAULT_GIT_REMOTE = 'origin'; const DEFAULT_GIT_REMOTE = 'origin';

View File

@@ -1,6 +1,6 @@
<?php <?php
final class DiffusionPathChange { final class DiffusionPathChange extends Phobject {
private $path; private $path;
private $commitIdentifier; private $commitIdentifier;

View File

@@ -1,6 +1,6 @@
<?php <?php
final class DiffusionRepositoryPath { final class DiffusionRepositoryPath extends Phobject {
private $fullPath; private $fullPath;
private $path; private $path;

View File

@@ -1,6 +1,6 @@
<?php <?php
final class DiffusionRepositoryTag { final class DiffusionRepositoryTag extends Phobject {
private $author; private $author;
private $epoch; private $epoch;

View File

@@ -1,6 +1,6 @@
<?php <?php
final class DiffusionMercurialWireProtocol { final class DiffusionMercurialWireProtocol extends Phobject {
public static function getCommandArgs($command) { public static function getCommandArgs($command) {
// We need to enumerate all of the Mercurial wire commands because the // We need to enumerate all of the Mercurial wire commands because the

View File

@@ -1,6 +1,6 @@
<?php <?php
final class DiffusionPathQuery { final class DiffusionPathQuery extends Phobject {
private $pathIDs; private $pathIDs;

View File

@@ -1,6 +1,6 @@
<?php <?php
final class DiffusionRenameHistoryQuery { final class DiffusionRenameHistoryQuery extends Phobject {
private $oldCommit; private $oldCommit;
private $wasCreated; private $wasCreated;

View File

@@ -1,6 +1,6 @@
<?php <?php
final class DiffusionPathChangeQuery { final class DiffusionPathChangeQuery extends Phobject {
private $request; private $request;
private $limit; private $limit;

View File

@@ -3,7 +3,7 @@
/** /**
* @task pathutil Path Utilities * @task pathutil Path Utilities
*/ */
final class DiffusionPathIDQuery { final class DiffusionPathIDQuery extends Phobject {
public function __construct(array $paths) { public function __construct(array $paths) {
$this->paths = $paths; $this->paths = $paths;

View File

@@ -7,7 +7,7 @@
* @task new Creating Requests * @task new Creating Requests
* @task uri Managing Diffusion URIs * @task uri Managing Diffusion URIs
*/ */
abstract class DiffusionRequest { abstract class DiffusionRequest extends Phobject {
protected $callsign; protected $callsign;
protected $path; protected $path;

View File

@@ -4,7 +4,6 @@
* This protocol has a good spec here: * This protocol has a good spec here:
* *
* http://svn.apache.org/repos/asf/subversion/trunk/subversion/libsvn_ra_svn/protocol * http://svn.apache.org/repos/asf/subversion/trunk/subversion/libsvn_ra_svn/protocol
*
*/ */
final class DiffusionSubversionServeSSHWorkflow final class DiffusionSubversionServeSSHWorkflow
extends DiffusionSubversionSSHWorkflow { extends DiffusionSubversionSSHWorkflow {

View File

@@ -1,6 +1,6 @@
<?php <?php
final class DiffusionExternalSymbolQuery { final class DiffusionExternalSymbolQuery extends Phobject {
private $languages = array(); private $languages = array();
private $types = array(); private $types = array();
private $names = array(); private $names = array();

View File

@@ -1,6 +1,6 @@
<?php <?php
abstract class DiffusionExternalSymbolsSource { abstract class DiffusionExternalSymbolsSource extends Phobject {
/** /**
* @return list of PhabricatorRepositorySymbol * @return list of PhabricatorRepositorySymbol

View File

@@ -1,6 +1,6 @@
<?php <?php
final class DivinerAtom { final class DivinerAtom extends Phobject {
const TYPE_ARTICLE = 'article'; const TYPE_ARTICLE = 'article';
const TYPE_CLASS = 'class'; const TYPE_CLASS = 'class';

View File

@@ -1,6 +1,6 @@
<?php <?php
final class DivinerAtomRef { final class DivinerAtomRef extends Phobject {
private $book; private $book;
private $context; private $context;

View File

@@ -3,7 +3,7 @@
/** /**
* Generate @{class:DivinerAtom}s from source code. * Generate @{class:DivinerAtom}s from source code.
*/ */
abstract class DivinerAtomizer { abstract class DivinerAtomizer extends Phobject {
private $book; private $book;
private $fileName; private $fileName;

View File

@@ -1,6 +1,6 @@
<?php <?php
abstract class DivinerDiskCache { abstract class DivinerDiskCache extends Phobject {
private $cache; private $cache;

View File

@@ -1,6 +1,6 @@
<?php <?php
abstract class DivinerPublisher { abstract class DivinerPublisher extends Phobject {
private $atomCache; private $atomCache;
private $atomGraphHashToNodeHashMap; private $atomGraphHashToNodeHashMap;

View File

@@ -1,6 +1,6 @@
<?php <?php
abstract class DivinerRenderer { abstract class DivinerRenderer extends Phobject {
private $publisher; private $publisher;
private $atomStack = array(); private $atomStack = array();

View File

@@ -3,7 +3,7 @@
/** /**
* @task config Configuration * @task config Configuration
*/ */
abstract class DoorkeeperFeedStoryPublisher { abstract class DoorkeeperFeedStoryPublisher extends Phobject {
private $feedStory; private $feedStory;
private $viewer; private $viewer;

View File

@@ -5,7 +5,7 @@
* @task resource Resource Allocation * @task resource Resource Allocation
* @task log Logging * @task log Logging
*/ */
abstract class DrydockBlueprintImplementation { abstract class DrydockBlueprintImplementation extends Phobject {
private $activeResource; private $activeResource;
private $activeLease; private $activeLease;

View File

@@ -1,3 +1,3 @@
<?php <?php
abstract class DrydockConstants {} abstract class DrydockConstants extends Phobject {}

View File

@@ -1,6 +1,6 @@
<?php <?php
abstract class DrydockInterface { abstract class DrydockInterface extends Phobject {
private $config; private $config;

View File

@@ -1,6 +1,6 @@
<?php <?php
final class DrydockBlueprintScopeGuard { final class DrydockBlueprintScopeGuard extends Phobject {
public function __construct(DrydockBlueprintImplementation $blueprint) { public function __construct(DrydockBlueprintImplementation $blueprint) {
$this->blueprint = $blueprint; $this->blueprint = $blueprint;

View File

@@ -1,6 +1,6 @@
<?php <?php
abstract class PhabricatorFactEngine { abstract class PhabricatorFactEngine extends Phobject {
final public static function loadAllEngines() { final public static function loadAllEngines() {
$classes = id(new PhutilSymbolLoader()) $classes = id(new PhutilSymbolLoader())

View File

@@ -1,6 +1,6 @@
<?php <?php
abstract class PhabricatorFactSpec { abstract class PhabricatorFactSpec extends Phobject {
const UNIT_COUNT = 'unit-count'; const UNIT_COUNT = 'unit-count';
const UNIT_EPOCH = 'unit-epoch'; const UNIT_EPOCH = 'unit-epoch';

View File

@@ -1,6 +1,6 @@
<?php <?php
final class PhabricatorFeedStoryPublisher { final class PhabricatorFeedStoryPublisher extends Phobject {
private $relatedPHIDs; private $relatedPHIDs;
private $storyType; private $storyType;

View File

@@ -1,6 +1,6 @@
<?php <?php
final class PhabricatorFeedBuilder { final class PhabricatorFeedBuilder extends Phobject {
private $stories; private $stories;
private $framed; private $framed;

View File

@@ -9,6 +9,7 @@
* @task policy Policy Implementation * @task policy Policy Implementation
*/ */
abstract class PhabricatorFeedStory abstract class PhabricatorFeedStory
extends Phobject
implements implements
PhabricatorPolicyInterface, PhabricatorPolicyInterface,
PhabricatorMarkupInterface { PhabricatorMarkupInterface {

View File

@@ -4,7 +4,7 @@
* @task enormous Detecting Enormous Images * @task enormous Detecting Enormous Images
* @task save Saving Image Data * @task save Saving Image Data
*/ */
final class PhabricatorImageTransformer { final class PhabricatorImageTransformer extends Phobject {
public function executeMemeTransform( public function executeMemeTransform(
PhabricatorFile $file, PhabricatorFile $file,

View File

@@ -14,7 +14,7 @@
* @task file Managing File Data * @task file Managing File Data
* @task load Loading Storage Engines * @task load Loading Storage Engines
*/ */
abstract class PhabricatorFileStorageEngine { abstract class PhabricatorFileStorageEngine extends Phobject {
/** /**
* Construct a new storage engine. * Construct a new storage engine.

View File

@@ -4,7 +4,7 @@
* Callback provider for loading @{class@arcanist:ArcanistBundle} file data * Callback provider for loading @{class@arcanist:ArcanistBundle} file data
* stored in the Files application. * stored in the Files application.
*/ */
final class PhabricatorFileBundleLoader { final class PhabricatorFileBundleLoader extends Phobject {
private $viewer; private $viewer;

View File

@@ -1,3 +1,3 @@
<?php <?php
abstract class PhabricatorFlagConstants {} abstract class PhabricatorFlagConstants extends Phobject {}

View File

@@ -1,6 +1,6 @@
<?php <?php
abstract class HarbormasterBuildStepImplementation { abstract class HarbormasterBuildStepImplementation extends Phobject {
public static function getImplementations() { public static function getImplementations() {
return id(new PhutilSymbolLoader()) return id(new PhutilSymbolLoader())

View File

@@ -3,7 +3,7 @@
/** /**
* @task customfield Custom Field Integration * @task customfield Custom Field Integration
*/ */
abstract class HeraldAdapter { abstract class HeraldAdapter extends Phobject {
const FIELD_TITLE = 'title'; const FIELD_TITLE = 'title';
const FIELD_BODY = 'body'; const FIELD_BODY = 'body';

View File

@@ -1,6 +1,6 @@
<?php <?php
final class HeraldRepetitionPolicyConfig { final class HeraldRepetitionPolicyConfig extends Phobject {
const FIRST = 'first'; // only execute the first time (no repeating) const FIRST = 'first'; // only execute the first time (no repeating)
const EVERY = 'every'; // repeat every time const EVERY = 'every'; // repeat every time

View File

@@ -1,6 +1,6 @@
<?php <?php
final class HeraldRuleTypeConfig { final class HeraldRuleTypeConfig extends Phobject {
const RULE_TYPE_GLOBAL = 'global'; const RULE_TYPE_GLOBAL = 'global';
const RULE_TYPE_OBJECT = 'object'; const RULE_TYPE_OBJECT = 'object';

View File

@@ -1,6 +1,6 @@
<?php <?php
final class HeraldEffect { final class HeraldEffect extends Phobject {
private $objectPHID; private $objectPHID;
private $action; private $action;

View File

@@ -1,14 +1,15 @@
<?php <?php
final class HeraldEngine { final class HeraldEngine extends Phobject {
protected $rules = array(); protected $rules = array();
protected $results = array(); protected $results = array();
protected $stack = array(); protected $stack = array();
protected $activeRule = null; protected $activeRule;
protected $transcript;
protected $fieldCache = array(); protected $fieldCache = array();
protected $object = null; protected $object;
private $dryRun; private $dryRun;
public function setDryRun($dry_run) { public function setDryRun($dry_run) {

View File

@@ -1,6 +1,6 @@
<?php <?php
abstract class HeraldCustomAction { abstract class HeraldCustomAction extends Phobject {
abstract public function appliesToAdapter(HeraldAdapter $adapter); abstract public function appliesToAdapter(HeraldAdapter $adapter);

View File

@@ -1,6 +1,6 @@
<?php <?php
final class HeraldConditionTranscript { final class HeraldConditionTranscript extends Phobject {
protected $ruleID; protected $ruleID;
protected $conditionID; protected $conditionID;

View File

@@ -1,6 +1,6 @@
<?php <?php
final class HeraldObjectTranscript { final class HeraldObjectTranscript extends Phobject {
protected $phid; protected $phid;
protected $type; protected $type;

Some files were not shown because too many files have changed in this diff Show More