minor fixesgs
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
declare(strict_types=1);
|
||||
namespace App\Logic\Dividends;
|
||||
|
||||
use App\Enum\MarketNames;
|
||||
use App\Helper\Currency;
|
||||
use Doctrine\ORM\EntityManager;
|
||||
|
||||
@@ -18,12 +19,23 @@ class DividendsSummary
|
||||
private array $allData=[];
|
||||
private array $countryToCurrency=[];
|
||||
private int $realCalculatedRows = 0;
|
||||
/** @var array|MarketNames $markets */
|
||||
private array $markets=[];
|
||||
|
||||
public function __construct(EntityManager $manager)
|
||||
{
|
||||
$this->currencyObj = new Currency($manager);
|
||||
}
|
||||
|
||||
public function addMarket(?MarketNames $names)
|
||||
{
|
||||
$this->markets[] = $names ?? MarketNames::MBANK;
|
||||
}
|
||||
|
||||
public function getMarkets(): array
|
||||
{
|
||||
return $this->markets;
|
||||
}
|
||||
public function getSummaryByCountry() : array
|
||||
{
|
||||
$return=[];
|
||||
|
||||
Reference in New Issue
Block a user