InfluxOW/laravel_ddd_ecommerce

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

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace App\Components\Attributable\Models\Virtual;

use OpenApi\Annotations as OA;

/**
 * @OA\Schema()
 */
final class AttributeValue
{
    /**
     * @OA\Property(oneOf={
     *
     *    @OA\Schema(type="string"),
     *    @OA\Schema(type="integer"),
     *    @OA\Schema(type="boolean"),
     *    @OA\Schema(type="float"),
     * })
     *
     * @example 35.4
     */
    public string|int|bool|float $value;

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