This repository has been archived on 2023-10-21. You can view files and clone it, but cannot push or open issues or pull requests.
patchouli/src/Dummy/DummyPackageTarget.php
2020-12-29 22:44:39 +00:00

30 lines
652 B
PHP

<?php
namespace Patchouli\Dummy;
use Patchouli\Platform;
use Patchouli\IPackageTarget;
class DummyPackageTarget implements IPackageTarget {
function getPlatform(): Platform {
return Platform::get(Platform::WIN_IA32);
}
public function getFiles(): array {
return [
new DummyPackageFile('poop.exe'),
];
}
public function getDependencies(): array {
return [];
}
public function fwifSerialize(): array {
return [
'platform' => $this->getPlatform(),
'files' => $this->getFiles(),
'deps' => $this->getDependencies(),
];
}
}