|
const | TABLE = 'payments_schedules' |
|
const | PK = 'id_schedule' |
|
Scheduled payment
- Author
- Johan Cwiklinski johan.nosp@m.@x-t.nosp@m.nd.be
◆ __construct()
Galette\Entity\ScheduledPayment::__construct |
( |
Db |
$zdb, |
|
|
ArrayObject|int |
$args = null |
|
) |
| |
Main constructor
- Parameters
-
Db | $zdb | Database instance |
| ArrayObject<string,int|string>|int|null | $args Arguments |
◆ check()
Galette\Entity\ScheduledPayment::check |
( |
array |
$data | ) |
|
Check data
- Parameters
-
array<string,mixed> | $data Data |
- Returns
- boolean
◆ getAllocated()
Galette\Entity\ScheduledPayment::getAllocated |
( |
| ) |
|
Get allocated amount for current contribution
- Returns
- float
- Exceptions
-
◆ getAllocation()
Galette\Entity\ScheduledPayment::getAllocation |
( |
int |
$id_cotis | ) |
|
Get allocated amount
- Parameters
-
- Returns
- float
- Exceptions
-
◆ getAmount()
Galette\Entity\ScheduledPayment::getAmount |
( |
| ) |
|
◆ getComment()
Galette\Entity\ScheduledPayment::getComment |
( |
| ) |
|
Get comment
- Returns
- ?string
◆ getContribution()
Galette\Entity\ScheduledPayment::getContribution |
( |
| ) |
|
◆ getCreationDate()
Galette\Entity\ScheduledPayment::getCreationDate |
( |
bool |
$formatted = true | ) |
|
Get creation date
- Parameters
-
bool | $formatted | Get formatted date, or DateTime object |
- Returns
- string|DateTime|null
◆ getErrors()
Galette\Entity\ScheduledPayment::getErrors |
( |
| ) |
|
Get errors
- Returns
- string[]
◆ getId()
Galette\Entity\ScheduledPayment::getId |
( |
| ) |
|
Get identifier
- Returns
- ?int
◆ getMissingAmount()
Galette\Entity\ScheduledPayment::getMissingAmount |
( |
| ) |
|
Get missing amount
- Returns
- float
◆ getNotFullyAllocated()
Galette\Entity\ScheduledPayment::getNotFullyAllocated |
( |
| ) |
|
Get not fully allocated scheduled payments
- Returns
- Contribution[]
@phpstan-ignore-next-line
@phpstan-ignore-next-line
◆ getPaymentType()
Galette\Entity\ScheduledPayment::getPaymentType |
( |
| ) |
|
◆ getScheduledDate()
Galette\Entity\ScheduledPayment::getScheduledDate |
( |
bool |
$formatted = true | ) |
|
Get scheduled date
- Parameters
-
bool | $formatted | Get formatted date, or DateTime object |
- Returns
- string|DateTime|null
◆ isContributionHandled()
Galette\Entity\ScheduledPayment::isContributionHandled |
( |
int |
$id_cotis | ) |
|
Is a contribution handled from a scheduled payment?
- Parameters
-
- Returns
- bool
- Exceptions
-
◆ isFullyAllocated()
Galette\Entity\ScheduledPayment::isFullyAllocated |
( |
Contribution |
$contrib | ) |
|
Is scheduled payment fully allocated?
- Parameters
-
- Returns
- bool
◆ isPaid()
Galette\Entity\ScheduledPayment::isPaid |
( |
| ) |
|
Is payment done?
- Returns
- bool
◆ load()
Galette\Entity\ScheduledPayment::load |
( |
int |
$id | ) |
|
Load a scheduled payment from its identifier
- Parameters
-
- Returns
- bool
◆ remove()
Galette\Entity\ScheduledPayment::remove |
( |
| ) |
|
Remove current
- Returns
- boolean
◆ setAmount()
Galette\Entity\ScheduledPayment::setAmount |
( |
float |
$amount | ) |
|
Set amount
- Parameters
-
- Returns
- self
◆ setComment()
Galette\Entity\ScheduledPayment::setComment |
( |
?string |
$comment | ) |
|
Set comment
- Parameters
-
- Returns
- self
◆ setContribution()
Galette\Entity\ScheduledPayment::setContribution |
( |
int|Contribution |
$contribution | ) |
|
Set contribution
- Parameters
-
- Returns
- self
◆ setCreationDate()
Galette\Entity\ScheduledPayment::setCreationDate |
( |
string |
$creation_date | ) |
|
Set creation date
- Parameters
-
string | $creation_date | Creation date |
- Returns
- self
◆ setFields()
Galette\Entity\ScheduledPayment::setFields |
( |
| ) |
|
|
protected |
Set fields, must populate $this->fields
- Returns
- self
◆ setPaid()
Galette\Entity\ScheduledPayment::setPaid |
( |
bool |
$is_paid = true | ) |
|
Set paid
- Parameters
-
- Returns
- self
◆ setPaymentType()
Galette\Entity\ScheduledPayment::setPaymentType |
( |
int|PaymentType |
$payment_type | ) |
|
Set payment type
- Parameters
-
int | PaymentType | $payment_type | Payment type instance or id |
- Returns
- self
◆ setScheduledDate()
Galette\Entity\ScheduledPayment::setScheduledDate |
( |
string |
$scheduled_date | ) |
|
Set scheduled date
- Parameters
-
string | $scheduled_date | Scheduled date |
- Returns
- self
◆ store()
Galette\Entity\ScheduledPayment::store |
( |
| ) |
|
Store scheduled payment in database
- Returns
- boolean
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/galette-apidoc/checkouts/develop/galette/lib/Galette/Entity/ScheduledPayment.php