accu(new AttrProperty($val)); } return $props; } public function AttrProperties($val = 0) { $this->value = $val; } public function getValue() { return $this->value; } public function accu(AttrProperty $attr_prop) { $this->value = $this->value | pow(2,$attr_prop->getValue()); } public function incl(AttrProperty $attr_prop) { return 0 !== ($this->value & pow(2,$attr_prop->getValue())); } public function __toString() { return "$this->value"; } }