mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
Adding documentation
This commit is contained in:
parent
008cb5b216
commit
2dc2479304
@ -562,12 +562,15 @@ class Person {
|
||||
return $this->spokenLanguages;
|
||||
}
|
||||
|
||||
// VALIDATION
|
||||
/**
|
||||
* Validation callback that checks if the accompanying periods are valid
|
||||
*
|
||||
* This method add violation errors.
|
||||
*/
|
||||
public function isAccompanyingPeriodValid(ExecutionContextInterface $context) {
|
||||
$r = $this->checkAccompanyingPeriodIsNotCovering();
|
||||
|
||||
if ($r !== true) {
|
||||
|
||||
if ($r['result'] === self::ERROR_OPENING_NOT_CLOSED_IS_BEFORE_NEW_LINE) {
|
||||
$context->addViolationAt('history',
|
||||
'Accompanying period not closed is before the new line',
|
||||
|
Loading…
x
Reference in New Issue
Block a user