public function getAttributes()
    {
        $attributes = [];
        
        foreach ($this->attributes as $name => $attr) {
            $value = $attr instanceof \Closure || $attr instanceof DerivedAttributeInterface ? $attr($this) : $attr;
            $attributes[$name] = $value;
        }
        
        return $attributes;
    }