| 1 | <?php |
||
| 14 | final class RenameCommand extends AbstractCommand |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var Tag |
||
| 18 | */ |
||
| 19 | private $tag; |
||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | private $mailboxName; |
||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | private $newName; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * FetchCommand constructor. |
||
| 31 | * @param Tag $tag |
||
| 32 | * @param string $mailboxName |
||
| 33 | * @param string $newName |
||
| 34 | */ |
||
| 35 | public function __construct(Tag $tag, string $mailboxName, string $newName) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return StreamInterface |
||
| 44 | */ |
||
| 45 | protected function createStream(): StreamInterface |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return Tag |
||
| 58 | */ |
||
| 59 | public function getTag(): Tag |
||
| 63 | } |