2018-11-25 21:27:25 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Domain\SourceManagement;
|
|
|
|
|
|
|
|
use App\Entity\Source\SourceInterface;
|
|
|
|
|
2019-01-19 22:52:49 +01:00
|
|
|
/**
|
|
|
|
* Offers to add and remove source members and memberships.
|
|
|
|
*
|
|
|
|
* @author kevinfrantz
|
|
|
|
*/
|
2018-11-25 21:27:25 +01:00
|
|
|
interface SourceMemberManagerInterface
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @param SourceInterface $member
|
|
|
|
*/
|
|
|
|
public function addMember(SourceInterface $member): void;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param SourceInterface $member
|
|
|
|
*/
|
|
|
|
public function removeMember(SourceInterface $member): void;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param SourceInterface $membership
|
|
|
|
*/
|
|
|
|
public function addMembership(SourceInterface $membership): void;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param SourceInterface $membership
|
|
|
|
*/
|
|
|
|
public function removeMembership(SourceInterface $membership): void;
|
|
|
|
}
|