public function setAllowedAttributes($attributes)
        {
            if(!is_array($attributes)) {
                $attributes = [$attributes];
            }
            $this->allowedAttributes = $attributes;
            return $this;
        }