mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-12 14:58:33 +01:00
15 lines
293 B
PHP
15 lines
293 B
PHP
|
<?php
|
||
|
|
||
|
final class DivinerFileAtomizer extends DivinerAtomizer {
|
||
|
|
||
|
public function atomize($file_name, $file_data) {
|
||
|
$atom = $this->newAtom(DivinerAtom::TYPE_FILE)
|
||
|
->setName($file_name)
|
||
|
->setFile($file_name)
|
||
|
->setContentRaw($file_data);
|
||
|
|
||
|
return array($atom);
|
||
|
}
|
||
|
|
||
|
}
|