/** * Get MailboxRef for the current Mailbox object * * @return \HelpScout\model\ref\MailboxRef */ public function toRef() { $ref = new \HelpScout\model\ref\MailboxRef(); $ref->setId($this->getId()); $ref->setName($this->getName()); return $ref; }