2011-03-22 21:22:40 +01:00
|
|
|
<?php
|
|
|
|
|
2012-03-14 00:21:04 +01:00
|
|
|
final class HeraldDryRunAdapter extends HeraldObjectAdapter {
|
2011-03-22 21:22:40 +01:00
|
|
|
|
2011-03-24 21:49:21 +01:00
|
|
|
public function getPHID() {
|
2011-03-22 21:22:40 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getHeraldName() {
|
|
|
|
return 'Dry Run';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getHeraldTypeName() {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getHeraldField($field) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function applyHeraldEffects(array $effects) {
|
2012-04-03 21:10:45 +02:00
|
|
|
assert_instances_of($effects, 'HeraldEffect');
|
2011-03-22 21:22:40 +01:00
|
|
|
$results = array();
|
|
|
|
foreach ($effects as $effect) {
|
|
|
|
$results[] = new HeraldApplyTranscript(
|
|
|
|
$effect,
|
|
|
|
false,
|
|
|
|
'This was a dry run, so no actions were actually taken.');
|
|
|
|
}
|
|
|
|
return $results;
|
|
|
|
}
|
|
|
|
}
|