Newscoop\Entity\Comment\Preference\Article::setLocked PHP Method

setLocked() public method

Set the flag if the comments are enabled or not
public setLocked ( $p_locked ) : Article
return Article
    public function setLocked($p_locked)
    {
        $this->locked = $p_locked;
        // return this for chaining mechanism
        return $this;
    }

Usage Example

 public function setLocked($p_locked)
 {
     $this->__load();
     return parent::setLocked($p_locked);
 }