chill-bundles/src/Bundle/ChillPersonBundle/AccompanyingPeriod/SocialIssueConsistency/AccompanyingPeriodLinkedWithSocialIssuesEntityInterface.php

29 lines
930 B
PHP

<?php
namespace Chill\PersonBundle\AccompanyingPeriod\SocialIssueConsistency;
use Doctrine\Common\Collections\Collection;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
use Chill\PersonBundle\Entity\SocialWork\SocialIssue;
/**
* This interface must be implemented on entities which:
*
* * have both social issue and is linked to an AccompanyingPeriod
* * when the social issues in the entity should be added to the accompanying period
*
* A doctrine listener will list social issues which are associated to the entity, but
* not on the AccompanyingPeriod, and push them back to the accompanying period.
*/
interface AccompanyingPeriodLinkedWithSocialIssuesEntityInterface
{
public function getAccompanyingPeriod(): ?AccompanyingPeriod;
/**
* @return Collection|SocialIssue[]
*/
public function getSocialIssues(): Collection;
public function removeSocialIssue(SocialIssue $issue): self;
}