1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- namespace Symfony\Contracts\Service\Attribute;
- use Symfony\Contracts\Service\ServiceMethodsSubscriberTrait;
- use Symfony\Contracts\Service\ServiceSubscriberInterface;
- final class SubscribedService
- {
-
- public array $attributes;
-
- public function __construct(
- public ?string $key = null,
- public ?string $type = null,
- public bool $nullable = false,
- array|object $attributes = [],
- ) {
- $this->attributes = \is_array($attributes) ? $attributes : [$attributes];
- }
- }
|