mirror of
https://github.com/itflow-org/itflow
synced 2026-08-05 15:17:17 +00:00
17 lines
434 B
PHP
17 lines
434 B
PHP
<?php
|
|
|
|
namespace DirectoryTree\ImapEngine;
|
|
|
|
trait ComparesFolders
|
|
{
|
|
/**
|
|
* Determine if two folders are the same.
|
|
*/
|
|
protected function isSameFolder(FolderInterface $a, FolderInterface $b): bool
|
|
{
|
|
return $a->path() === $b->path()
|
|
&& $a->mailbox()->config('host') === $b->mailbox()->config('host')
|
|
&& $a->mailbox()->config('username') === $b->mailbox()->config('username');
|
|
}
|
|
}
|