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