InfluxOW/laravel_ddd_ecommerce

View on GitHub
app/Components/Attributable/Models/Virtual/Attribute.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace App\Components\Attributable\Models\Virtual;

use App\Domains\Common\Enums\Response\ResponseValueType;
use OpenApi\Annotations as OA;

/**
 * @OA\Schema()
 */
final class Attribute
{
    /**
     * @OA\Property()
     *
     * @example Width
     */
    public string $title;

    /**
     * @OA\Property()
     *
     * @example width
     */
    public string $slug;

    /**
     * @OA\Property(ref="#/components/schemas/ResponseValueType")
     */
    public ResponseValueType $type;
}