$attrValue) { if (property_exists($this, $attrName)) { $this->$attrName = $attrValue; } } } }