1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-01 03:02:43 +01:00
phorge-phorge/src/applications/herald/adapter/HeraldDryRunAdapter.php

33 lines
653 B
PHP
Raw Normal View History

2011-03-22 21:22:40 +01:00
<?php
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) {
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;
}
}