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