public function setAllowedAttributes(array $allowedAttributes) { $this->allowedAttributes = $allowedAttributes; return $this; }