1<?php 2 3/** 4 * @see https://github.com/laminas/laminas-mail for the canonical source repository 5 * @copyright https://github.com/laminas/laminas-mail/blob/master/COPYRIGHT.md 6 * @license https://github.com/laminas/laminas-mail/blob/master/LICENSE.md New BSD License 7 */ 8 9namespace Laminas\Mail\Storage\Folder; 10 11interface FolderInterface 12{ 13 /** 14 * get root folder or given folder 15 * 16 * @param string $rootFolder get folder structure for given folder, else root 17 * @return FolderInterface root or wanted folder 18 */ 19 public function getFolders($rootFolder = null); 20 21 /** 22 * select given folder 23 * 24 * folder must be selectable! 25 * 26 * @param FolderInterface|string $globalName global name of folder or instance for subfolder 27 * @throws \Laminas\Mail\Storage\Exception\ExceptionInterface 28 */ 29 public function selectFolder($globalName); 30 31 /** 32 * get Laminas\Mail\Storage\Folder instance for current folder 33 * 34 * @return FolderInterface instance of current folder 35 * @throws \Laminas\Mail\Storage\Exception\ExceptionInterface 36 */ 37 public function getCurrentFolder(); 38} 39