mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-02 21:13:57 +00:00
add an icon when the file is opened / closed in result list, and in person rendering macro
This commit is contained in:
@@ -128,7 +128,12 @@ class AccompanyingPeriod
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function isOpen() {
|
||||
public function isOpen(): bool
|
||||
{
|
||||
if ($this->getOpeningDate() > new \DateTime('now')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($this->getClosingDate() === null) {
|
||||
return true;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user