mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-11 17:32:41 +01:00
23 lines
397 B
PHP
23 lines
397 B
PHP
|
<?php
|
||
|
|
||
|
final class DrydockLocalHostBlueprint extends DrydockBlueprint {
|
||
|
|
||
|
public function getType() {
|
||
|
return 'host';
|
||
|
}
|
||
|
|
||
|
public function getInterface(
|
||
|
DrydockResource $resource,
|
||
|
DrydockLease $lease,
|
||
|
$type) {
|
||
|
|
||
|
switch ($type) {
|
||
|
case 'command':
|
||
|
return new DrydockLocalCommandInterface();
|
||
|
}
|
||
|
|
||
|
throw new Exception("No interface of type '{$type}'.");
|
||
|
}
|
||
|
|
||
|
}
|