public function markAsRead(int $messageId)
    {
        $this->sql = 'update message set is_read = \'Y\' where id = ?';
        $this->bindValues[] = $messageId;

        return $this->execute();
    }
public function markAsRead(int $messageId)
    {
        $this->sql = 'update message set is_read = \'Y\' where id = ?';
        $this->bindValues[] = $messageId;

        return $this->execute();
    }
public function markAsRead ( int $ messageId ) { $ this -> sql = 'update message set is_read = \'Y\' where id = ?' ; $ this -> bindValues [ ] = $ messageId ; return $ this -> execute ( ) ; }
Mark As Read

@param  int  $messageId
@return void
Mark As Read