Skip to content

Commit d4e5bd9

Browse files
committed
statementor class update
1 parent 6e7e801 commit d4e5bd9

2 files changed

Lines changed: 39 additions & 3 deletions

File tree

.openapi-generator/templates/Statementor.mustache

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
declare(strict_types=1);
44

55
/**
6-
* This file is part of the MultiFlexi package
6+
* This file is part of the CSasWebApi package
77
*
8-
* https://github.com/VitexSoftware/php-vitexsoftware-rbczpremiumapi
8+
* https://github.com/Spoje-NET/php-csas-webapi
99
*
10-
* (c) Vítězslav Dvořák <http://vitexsoftware.com>
10+
* (c) SpojeNetIT <http://spoje.net/>
1111
*
1212
* For the full copyright and license information, please view the LICENSE
1313
* file that was distributed with this source code.
@@ -25,6 +25,7 @@ class Statementor extends \Ease\Sand
2525
use \Ease\Logger\Logging;
2626
public \DateTime $since;
2727
public \DateTime $until;
28+
private string $scope;
2829
2930
/**
3031
* DateTime Formating eg. 2021-08-01T10:00:00.0Z.
@@ -209,6 +210,18 @@ class Statementor extends \Ease\Sand
209210
$this->since = $this->since->setTime(0, 0);
210211
$this->until = $this->until->setTime(23, 59, 59, 999);
211212
}
213+
$this->scope = $scope;
214+
return $this->getScope();
215+
}
216+
217+
public function getScopeSymbolic(): string
218+
{
219+
return $this->scope;
220+
}
221+
222+
public function getScope(): \DatePeriod
223+
{
224+
return new \DatePeriod($this->since, new \DateInterval('P1D'), $this->until);
212225
}
213226

214227
/**
@@ -264,4 +277,9 @@ class Statementor extends \Ease\Sand
264277
{
265278
return $this->until;
266279
}
280+
281+
public function getAccountNumber(): string {
282+
return $this->accountNumber;
283+
}
284+
267285
}

lib/Statementor.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class Statementor extends \Ease\Sand
2525
use \Ease\Logger\Logging;
2626
public \DateTime $since;
2727
public \DateTime $until;
28+
private string $scope;
2829

2930
/**
3031
* DateTime Formating eg. 2021-08-01T10:00:00.0Z.
@@ -209,6 +210,18 @@ public function setScope($scope): \DatePeriod
209210
$this->since = $this->since->setTime(0, 0);
210211
$this->until = $this->until->setTime(23, 59, 59, 999);
211212
}
213+
$this->scope = $scope;
214+
return $this->getScope();
215+
}
216+
217+
public function getScopeSymbolic(): string
218+
{
219+
return $this->scope;
220+
}
221+
222+
public function getScope(): \DatePeriod
223+
{
224+
return new \DatePeriod($this->since, new \DateInterval('P1D'), $this->until);
212225
}
213226

214227
/**
@@ -264,4 +277,9 @@ public function getUntil(): \DateTime
264277
{
265278
return $this->until;
266279
}
280+
281+
public function getAccountNumber(): string {
282+
return $this->accountNumber;
283+
}
284+
267285
}

0 commit comments

Comments
 (0)