Initial commit
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
namespace App\Services;
|
||||
|
||||
use App\Helper\FIFO\Crypto;
|
||||
use App\Helper\Sheets\ReadSheet;
|
||||
use App\Logic\Dividends\DividendsSummary;
|
||||
use App\Logic\Dividends\SheetData;
|
||||
use App\Logic\Dividends\XMLReader;
|
||||
use Doctrine\ORM\EntityManager;
|
||||
|
||||
class CryptoService extends MasterServices
|
||||
{
|
||||
public function generate() : DividendsSummary
|
||||
{
|
||||
$summaryObj = new DividendsSummary($this->manager);
|
||||
|
||||
foreach ($this->allFiles as $file) {
|
||||
$extension = pathinfo($file)['extension'];
|
||||
$tmp = new ReadSheet($file);
|
||||
$tmp->takeFile();
|
||||
$a = new Crypto($tmp->getAll()[0]);
|
||||
dd($a->takeSumTransactions());
|
||||
}
|
||||
|
||||
|
||||
|
||||
return $summaryObj;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user