<?php
namespace OfficeBrain\Bundle\EmailBundle\Document;

use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;

/**
 *
 * @author OfficeBrain 4795
 *
 */
/**
 * @MongoDB\Document(repositoryClass="OfficeBrain\Bundle\EmailBundle\Document\EmailQueueRepository",collection="Idme_EmailQueue_UAT")
 */
class EmailQueue
{
    /**
     * @MongoDB\Id
     */
    protected $id;
    
    /**
     * @MongoDB\Field(type="int")
     */
    protected $instanceId;
    
    /**
     * @MongoDB\Field(type="string")
     */
    protected $instanceType;
    
    /**
     * @MongoDB\Field(type="string")
     */
    protected $event;
    
    /**
     * @MongoDB\Field(type="string")
     */
    protected $to;
    
    /**
     * @MongoDB\Field(type="string")
     */
    protected $from;
    
    /**
     * @MongoDB\Field(type="string")
     */
    protected $fromName;
    
    /**
     * @MongoDB\Field(type="int")
     */
    protected $fromAdm;
    
    /**
     * @MongoDB\Field(type="string")
     */
    protected $cc;
    
    /**
     * @MongoDB\Field(type="string")
     */
    protected $bcc;
    
    /**
     * @MongoDB\Field(type="string")
     */
    protected $replyTo;
    
    /**
     * @MongoDB\Field(type="string")
     */
    protected $subject;
    
    /**
     * @MongoDB\Field(type="string")
     */
    protected $content;
    
    /**
     * @MongoDB\Field(type="string")
     */
    protected $attachment;
    
    /**
     * @MongoDB\Field(type="string")
     */
    protected $type;
    
    /**
     * @MongoDB\Field(type="int")
     */
    protected $priority;
    
    /**
     * @MongoDB\Field(type="date")
     */
    protected $sendAt;
    
    /**
     * @MongoDB\Field(type="boolean")
     */
    protected $isSent;
    
    /**
     * @MongoDB\Field(type="boolean")
     */
    protected $isRead;
    
    /**
     * @MongoDB\Field(type="boolean")
     */
    protected $resend;
    
    /**
     * Get id
     *
     * @return id $id
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set instanceId
     *
     * @param int $instanceId
     * @return self
     */
    public function setInstanceId($instanceId)
    {
        $this->instanceId = $instanceId;
        return $this;
    }

    /**
     * Get instanceId
     *
     * @return int $instanceId
     */
    public function getInstanceId()
    {
        return $this->instanceId;
    }

    /**
     * Set instanceType
     *
     * @param string $instanceType
     * @return self
     */
    public function setInstanceType($instanceType)
    {
        $this->instanceType = $instanceType;
        return $this;
    }

    /**
     * Get instanceType
     *
     * @return string $instanceType
     */
    public function getInstanceType()
    {
        return $this->instanceType;
    }

    /**
     * Set event
     *
     * @param string $event
     * @return self
     */
    public function setEvent($event)
    {
        $this->event = $event;
        return $this;
    }

    /**
     * Get event
     *
     * @return string $event
     */
    public function getEvent()
    {
        return $this->event;
    }

    /**
     * Set to
     *
     * @param string $to
     * @return self
     */
    public function setTo($to)
    {
        $this->to = $to;
        return $this;
    }

    /**
     * Get to
     *
     * @return string $to
     */
    public function getTo()
    {
        return $this->to;
    }

    /**
     * Set from
     *
     * @param string $from
     * @return self
     */
    public function setFrom($from)
    {
        $this->from = $from;
        return $this;
    }

    /**
     * Get from
     *
     * @return string $from
     */
    public function getFrom()
    {
        return $this->from;
    }
    
    /**
     * Set fromName
     *
     * @param string $fromName
     * @return self
     */
    public function setFromName($fromName)
    {
    	$this->fromName = $fromName;
    	return $this;
    }
    
    /**
     * Get fromName
     *
     * @return string $fromName
     */
    public function getFromName()
    {
    	return $this->fromName;
    }
    
    /**
     * Set fromAdm
     *
     * @param int $fromAdm
     * @return self
     */
    public function setFromAdm($fromAdm)
    {
    	$this->fromAdm = $fromAdm;
    	return $this;
    }
    
    /**
     * Get fromAdm
     *
     * @return int $fromAdm
     */
    public function getFromAdm()
    {
    	return $this->fromAdm;
    }

    /**
     * Set cc
     *
     * @param string $cc
     * @return self
     */
    public function setCc($cc)
    {
        $this->cc = $cc;
        return $this;
    }

    /**
     * Get cc
     *
     * @return string $cc
     */
    public function getCc()
    {
        return $this->cc;
    }

    /**
     * Set bcc
     *
     * @param string $bcc
     * @return self
     */
    public function setBcc($bcc)
    {
        $this->bcc = $bcc;
        return $this;
    }

    /**
     * Get bcc
     *
     * @return string $bcc
     */
    public function getBcc()
    {
        return $this->bcc;
    }

    /**
     * Set subject
     *
     * @param string $subject
     * @return self
     */
    public function setSubject($subject)
    {
        $this->subject = $subject;
        return $this;
    }

    /**
     * Get subject
     *
     * @return string $subject
     */
    public function getSubject()
    {
        return $this->subject;
    }

    /**
     * Set content
     *
     * @param string $content
     * @return self
     */
    public function setContent($content)
    {
        $this->content = $content;
        return $this;
    }

    /**
     * Get content
     *
     * @return string $content
     */
    public function getContent()
    {
        return $this->content;
    }

    /**
     * Set type
     *
     * @param string $type
     * @return self
     */
    public function setType($type)
    {
        $this->type = $type;
        return $this;
    }

    /**
     * Get type
     *
     * @return string $type
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * Set priority
     *
     * @param int $priority
     * @return self
     */
    public function setPriority($priority)
    {
        $this->priority = $priority;
        return $this;
    }

    /**
     * Get priority
     *
     * @return int $priority
     */
    public function getPriority()
    {
        return $this->priority;
    }

    /**
     * Set sendAt
     *
     * @param date $sendAt
     * @return self
     */
    public function setSendAt($sendAt)
    {
        $this->sendAt = $sendAt;
        return $this;
    }

    /**
     * Get sendAt
     *
     * @return date $sendAt
     */
    public function getSendAt()
    {
        return $this->sendAt;
    }

    /**
     * Set isSent
     *
     * @param boolean $isSent
     * @return self
     */
    public function setIsSent($isSent)
    {
        $this->isSent = $isSent;
        return $this;
    }

    /**
     * Get isSent
     *
     * @return boolean $isSent
     */
    public function getIsSent()
    {
        return $this->isSent;
    }

    /**
     * Set isRead
     *
     * @param boolean $isRead
     * @return self
     */
    public function setIsRead($isRead)
    {
        $this->isRead = $isRead;
        return $this;
    }

    /**
     * Get isRead
     *
     * @return boolean $isRead
     */
    public function getIsRead()
    {
        return $this->isRead;
    }

    /**
     * Set resend
     *
     * @param boolean $resend
     * @return self
     */
    public function setResend($resend)
    {
        $this->resend = $resend;
        return $this;
    }

    /**
     * Get resend
     *
     * @return boolean $resend
     */
    public function getResend()
    {
        return $this->resend;
    }

    /**
     * Set attachment
     *
     * @param string $attachment
     * @return self
     */
    public function setAttachment($attachment)
    {
        $this->attachment = $attachment;
        return $this;
    }

    /**
     * Get attachment
     *
     * @return string $attachment
     */
    public function getAttachment()
    {
        return $this->attachment;
    }

    /**
     * Set replyTo
     *
     * @param string $replyTo
     * @return self
     */
    public function setReplyTo($replyTo)
    {
        $this->replyTo = $replyTo;
        return $this;
    }

    /**
     * Get replyTo
     *
     * @return string $replyTo
     */
    public function getReplyTo()
    {
        return $this->replyTo;
    }
}
