andreypostal/json-handler-php

View on GitHub
src/Attributes/JsonItemAttribute.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace Andrey\JsonHandler\Attributes;

use Attribute;

#[Attribute(Attribute::TARGET_PROPERTY)]
class JsonItemAttribute
{
    public function __construct(public ?string $key = null, public bool $required = false, public ?string $type = null) {}
}