mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-04 04:32:43 +01:00
18 lines
319 B
PHP
18 lines
319 B
PHP
|
<?php
|
||
|
|
||
|
abstract class DiffusionPreCommitRefHeraldField extends HeraldField {
|
||
|
|
||
|
public function supportsObject($object) {
|
||
|
if (!($object instanceof PhabricatorRepositoryPushLog)) {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
if (!$this->getAdapter()->isPreCommitRefAdapter()) {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
}
|