/** * @test */ public function it_converts_the_object_to_a_string() { $this->assertEquals('{"mailboxName":"{imap.example.com}INBOX.Trash","name":"INBOX.Trash","attributes":[1,2,3],"delimiter":"\\/"}', $this->folder->__toString()); }
/** * Adds the folder to the cache * @param Folder $folder * @param int $expires */ public function cacheFolder(Folder $folder, $expires = 0) { $key = $this->getKey($folder->getName()); $this->cache($key, $folder, $expires); }
/** * Adds a folder for the folder collection * @param $folders * @param $folder */ protected static function addFolder(FolderCollection $folders, $folder) { $folders->add(Folder::create($folder)); }