Skip to content
Code-Schnipsel Gruppen Projekte
Commit 4f755f41 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

Merge branch 'dev'

Übergeordnete 4d281611 f1fb358f
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
......@@ -362,6 +362,19 @@ public function removeArticle($index)
}
}
/**
* @param $pos
* @return Article|null
*/
public function getArticle($pos)
{
if (isset($this->articles[$pos])) {
return $this->articles[$pos];
}
return null;
}
/**
* Replace an article at a specific position
*
......
......@@ -15,6 +15,11 @@
*/
class Factor
{
/**
* @var mixed|string
*/
protected $identifier = '';
/**
* @var string
*/
......@@ -136,6 +141,18 @@ public function __construct($data = [])
if (isset($data['valueText']) && \is_string($data['valueText'])) {
$this->valueText = $data['valueText'];
}
if (isset($data['identifier']) && \is_string($data['identifier'])) {
$this->identifier = $data['identifier'];
}
}
/**
* @return mixed|string
*/
public function getIdentifier()
{
return $this->identifier;
}
/**
......@@ -281,6 +298,7 @@ public function isVisible()
public function toArray()
{
return [
'identifier' => $this->identifier,
'title' => $this->getTitle(),
'description' => $this->getDescription(),
'sum' => $this->getSum(),
......@@ -323,21 +341,33 @@ public function setEuVatStatus(bool $status)
//endregion
/**
* @param int|float $sum
*/
public function setSum($sum)
{
$this->sum = $sum;
}
/**
* @param string $sumFormatted
*/
public function setSumFormatted($sumFormatted)
{
$this->nettoSumFormatted = $sumFormatted;
}
/**
* @param int|float $sum
*/
public function setNettoSum($sum)
{
$this->nettoSum = $sum;
}
/**
* @param string $sumFormatted
*/
public function setNettoSumFormatted($sumFormatted)
{
$this->nettoSumFormatted = $sumFormatted;
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren