public function getAttribute($strAttributeName) { $arrAttributes = $this->getAttributes(); return array_key_exists($strAttributeName, $arrAttributes) ? $arrAttributes[$strAttributeName] : null; }