class FolderRepository implements FolderRepositoryInterface (View source)

Methods

__construct(Mailbox $mailbox)

Constructor.

find(string $path)

Find a folder.

findOrFail(string $path)

Find a folder or throw an exception.

create(string $path)

Create a new folder.

firstOrCreate(string $path)

Find or create a folder.

get(string|null $match = '*', string|null $reference = '')

Get the mailboxes folders.

Details

__construct(Mailbox $mailbox)

Constructor.

Parameters

Mailbox $mailbox

FolderInterface|null find(string $path)

Find a folder.

Parameters

string $path

Return Value

FolderInterface|null

FolderInterface findOrFail(string $path)

Find a folder or throw an exception.

Parameters

string $path

Return Value

FolderInterface

FolderInterface create(string $path)

Create a new folder.

Parameters

string $path

Return Value

FolderInterface

FolderInterface firstOrCreate(string $path)

Find or create a folder.

Parameters

string $path

Return Value

FolderInterface

FolderCollection get(string|null $match = '*', string|null $reference = '')

Get the mailboxes folders.

Parameters

string|null $match
string|null $reference

Return Value

FolderCollection