Newscoop\Entity\Notification::setType PHP Method

setType() public method

Set Type of the notification for now only comment type
public setType ( integer $p_type ) : Newscoop\Entity\Notification
$p_type integer
return Newscoop\Entity\Notification
    public function setType($p_type)
    {
        $this->type = $p_type;
        // return this for chaining mechanism
        return $this;
    }

Usage Example

 public function setType($p_type)
 {
     $this->__load();
     return parent::setType($p_type);
 }