109 lines
1.8 KiB
PHP
109 lines
1.8 KiB
PHP
<?php
|
|
declare(strict_types=1);
|
|
namespace App\Logic\Dividends;
|
|
|
|
final class DividendsData
|
|
{
|
|
private int $tax;
|
|
private int $count;
|
|
private float $value;
|
|
private string $currency;
|
|
private string $isin;
|
|
private \DateTime $dateTime;
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getIsin(): string
|
|
{
|
|
return $this->isin;
|
|
}
|
|
|
|
/**
|
|
* @param string $isin
|
|
*/
|
|
public function setIsin(string $isin): void
|
|
{
|
|
$this->isin = $isin;
|
|
}
|
|
|
|
/**
|
|
* @return \DateTime
|
|
*/
|
|
public function getDateTime(): \DateTime
|
|
{
|
|
return $this->dateTime;
|
|
}
|
|
|
|
/**
|
|
* @param \DateTime $dateTime
|
|
*/
|
|
public function setDateTime(\DateTime $dateTime): void
|
|
{
|
|
$this->dateTime = $dateTime;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getTax(): int
|
|
{
|
|
return $this->tax;
|
|
}
|
|
|
|
/**
|
|
* @param int $tax
|
|
*/
|
|
public function setTax(int $tax): void
|
|
{
|
|
$this->tax = $tax;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getCount(): int
|
|
{
|
|
return $this->count;
|
|
}
|
|
|
|
/**
|
|
* @param int $count
|
|
*/
|
|
public function setCount(int $count): void
|
|
{
|
|
$this->count = $count;
|
|
}
|
|
|
|
/**
|
|
* @return float
|
|
*/
|
|
public function getValue(): float
|
|
{
|
|
return $this->value;
|
|
}
|
|
|
|
/**
|
|
* @param float $value
|
|
*/
|
|
public function setValue(float $value): void
|
|
{
|
|
$this->value = $value;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getCurrency(): string
|
|
{
|
|
return $this->currency;
|
|
}
|
|
|
|
/**
|
|
* @param string $currency
|
|
*/
|
|
public function setCurrency(string $currency): void
|
|
{
|
|
$this->currency = trim($currency);
|
|
}
|
|
} |