public function add(...$flags) { foreach ($flags as $flag) { if (!$this->has($flag)) { $this->flags = $this->flags | (int) $flag; } } return $this; }