EscolaLMS/Core

View on GitHub
src/Dtos/Contracts/CompareDtoContract.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

namespace EscolaLms\Core\Dtos\Contracts;

/**
 * Interface CompareDtoContract
 * @package App\Dto\Contracts
 *
 * Class for compare separate Dtos that may contains different data,
 * but may be identify by the same content. For example just ID, or Name and ID.
 */
interface CompareDtoContract
{
    public function identifier(): array;
    public function toArray(): array;
}