MontealegreLuis/php-testing-tools

View on GitHub
ewallet/src/Ewallet/Memberships/Members.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php declare(strict_types=1);
/**
 * PHP version 7.4
 *
 * This source file is subject to the license that is bundled with this package in the file LICENSE.
 */

namespace Ewallet\Memberships;

/**
 * Handle the persistence of members information
 */
interface Members
{
    /**
     * @throws UnknownMember If the member with given identifier cannot be found
     */
    public function with(MemberId $memberId): Member;

    public function save(Member $member): void;
}