mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix #7189
This commit is contained in:
@@ -264,4 +264,34 @@ class AccountValidator
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Account|null $account
|
||||
*/
|
||||
public function setDestination(?Account $account): void
|
||||
{
|
||||
if(null === $account) {
|
||||
Log::debug('AccountValidator destination is set to NULL');
|
||||
}
|
||||
if(null !== $account) {
|
||||
Log::debug(sprintf('AccountValidator destination is set to #%d: "%s" (%s)', $account->id, $account->name, $account?->accountType->type));
|
||||
}
|
||||
$this->destination = $account;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Account|null $account
|
||||
*/
|
||||
public function setSource(?Account $account): void
|
||||
{
|
||||
if(null === $account) {
|
||||
Log::debug('AccountValidator source is set to NULL');
|
||||
}
|
||||
if(null !== $account) {
|
||||
Log::debug(sprintf('AccountValidator source is set to #%d: "%s" (%s)', $account->id, $account->name, $account?->accountType->type));
|
||||
}
|
||||
$this->source = $account;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user