From d7234c64a2d652fd4869895fc7a179d8c89d17d3 Mon Sep 17 00:00:00 2001 From: Younes ENNAJI Date: Fri, 16 Jan 2026 01:46:44 +0100 Subject: [PATCH] Simplify verbose PHPDoc class descriptions across 76 files Remove descriptive class/interface-level documentation that duplicates what the class/interface names already convey, while keeping all type annotations (@param, @return, @var, @throws, @phpstan-, @mixin, @template, @internal). Files modified: - Symfony integration (18 files): Attribute, Translation, Template, Component, Storage, Support, Http, Profiler, Command, Twig, EventListener, FlasherSymfonyBundle - Laravel integration (13 files): ServiceProvider, Storage, Middleware, Http, Facade, Template, Translation, Command, Component, EventListener - Prime/EventDispatcher (17 files): Events and EventListeners - Prime/Storage (11 files): Filter/Criteria and Bag interfaces - Prime/Stamp (4 files): Interface and stamp classes - Prime/Factory (5 files): Factory interfaces and implementations - Prime/Notification (2 files): Envelope and Notification - Prime/Support/Traits (1 file): ForwardsCalls --- src/Laravel/Command/InstallCommand.php | 3 --- src/Laravel/Component/FlasherComponent.php | 3 --- src/Laravel/EventListener/LivewireListener.php | 3 --- src/Laravel/EventListener/OctaneListener.php | 3 --- src/Laravel/Facade/Flasher.php | 2 -- src/Laravel/FlasherServiceProvider.php | 3 --- src/Laravel/Http/Request.php | 3 --- src/Laravel/Http/Response.php | 3 --- src/Laravel/Middleware/FlasherMiddleware.php | 3 --- src/Laravel/Middleware/SessionMiddleware.php | 3 --- src/Laravel/Storage/SessionBag.php | 3 --- src/Laravel/Support/PluginServiceProvider.php | 3 --- src/Laravel/Template/BladeTemplateEngine.php | 3 --- src/Laravel/Translation/Translator.php | 3 --- src/Prime/EventDispatcher/Event/FilterEvent.php | 3 --- .../Event/NotificationEvents.php | 2 -- .../EventDispatcher/Event/PersistEvent.php | 3 --- .../EventDispatcher/Event/PostPersistEvent.php | 3 --- .../EventDispatcher/Event/PostRemoveEvent.php | 3 --- .../EventDispatcher/Event/PostUpdateEvent.php | 3 --- .../EventDispatcher/Event/PresentationEvent.php | 3 --- src/Prime/EventDispatcher/Event/RemoveEvent.php | 3 --- .../EventDispatcher/Event/ResponseEvent.php | 3 --- .../Event/StoppableEventInterface.php | 3 --- src/Prime/EventDispatcher/Event/UpdateEvent.php | 3 --- .../EventListener/AddToStorageListener.php | 3 --- .../EventListener/ApplyPresetListener.php | 2 -- .../AttachDefaultStampsListener.php | 3 --- .../EventListener/EnvelopeRemovalListener.php | 3 --- .../EventListener/EventListenerInterface.php | 3 --- .../NotificationLoggerListener.php | 2 -- .../EventListener/TranslationListener.php | 3 --- src/Prime/Factory/FlasherFactoryInterface.php | 2 -- src/Prime/Factory/NotificationFactory.php | 2 -- .../Factory/NotificationFactoryInterface.php | 2 -- .../Factory/NotificationFactoryLocator.php | 3 --- .../NotificationFactoryLocatorInterface.php | 3 --- src/Prime/Notification/Envelope.php | 3 --- src/Prime/Notification/Notification.php | 3 --- src/Prime/Stamp/CreatedAtStamp.php | 3 --- src/Prime/Stamp/OrderableStampInterface.php | 3 --- src/Prime/Stamp/PresentableStampInterface.php | 3 --- src/Prime/Stamp/StampInterface.php | 3 --- src/Prime/Storage/Bag/ArrayBag.php | 3 --- src/Prime/Storage/Bag/BagInterface.php | 3 --- src/Prime/Storage/Bag/StaticBag.php | 3 --- .../Filter/Criteria/CriteriaInterface.php | 3 --- .../Storage/Filter/Criteria/DelayCriteria.php | 3 --- .../Storage/Filter/Criteria/FilterCriteria.php | 3 --- .../Storage/Filter/Criteria/HopsCriteria.php | 3 --- .../Storage/Filter/Criteria/LimitCriteria.php | 3 --- .../Storage/Filter/Criteria/OrderByCriteria.php | 3 --- .../Filter/Criteria/PresenterCriteria.php | 3 --- .../Filter/Criteria/PriorityCriteria.php | 3 --- .../Storage/Filter/Criteria/StampsCriteria.php | 3 --- src/Prime/Storage/Filter/Filter.php | 3 --- src/Prime/Support/Traits/ForwardsCalls.php | 17 ----------------- src/Symfony/Attribute/AsFlasherFactory.php | 3 --- src/Symfony/Attribute/AsFlasherPresenter.php | 3 --- src/Symfony/Command/InstallCommand.php | 3 --- src/Symfony/Component/FlasherComponent.php | 3 --- src/Symfony/EventListener/FlasherListener.php | 3 --- src/Symfony/EventListener/SessionListener.php | 3 --- src/Symfony/FlasherSymfonyBundle.php | 3 --- src/Symfony/Http/Request.php | 3 --- src/Symfony/Http/Response.php | 3 --- src/Symfony/Profiler/FlasherDataCollector.php | 2 -- src/Symfony/Storage/FallbackSession.php | 3 --- .../Storage/FallbackSessionInterface.php | 3 --- src/Symfony/Storage/SessionBag.php | 3 --- src/Symfony/Support/PluginBundle.php | 3 --- src/Symfony/Support/PluginBundleInterface.php | 3 --- src/Symfony/Template/TwigTemplateEngine.php | 3 --- src/Symfony/Translation/Translator.php | 3 --- src/Symfony/Twig/FlasherTwigExtension.php | 3 --- 75 files changed, 231 deletions(-) diff --git a/src/Laravel/Command/InstallCommand.php b/src/Laravel/Command/InstallCommand.php index 8ccc1dc1..3ec65969 100644 --- a/src/Laravel/Command/InstallCommand.php +++ b/src/Laravel/Command/InstallCommand.php @@ -15,9 +15,6 @@ use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Finder\Finder; -/** - * Artisan command for installing PHPFlasher resources. - */ final class InstallCommand extends Command { /** diff --git a/src/Laravel/Component/FlasherComponent.php b/src/Laravel/Component/FlasherComponent.php index a703236f..33f5ea1c 100644 --- a/src/Laravel/Component/FlasherComponent.php +++ b/src/Laravel/Component/FlasherComponent.php @@ -6,9 +6,6 @@ namespace Flasher\Laravel\Component; use Illuminate\View\Component; -/** - * Blade component for rendering PHPFlasher notifications. - */ final class FlasherComponent extends Component { public function __construct(public string $criteria = '', public string $context = '') diff --git a/src/Laravel/EventListener/LivewireListener.php b/src/Laravel/EventListener/LivewireListener.php index ad129d72..40b9f549 100644 --- a/src/Laravel/EventListener/LivewireListener.php +++ b/src/Laravel/EventListener/LivewireListener.php @@ -13,9 +13,6 @@ use Livewire\Component; use Livewire\LivewireManager; use Livewire\Mechanisms\HandleComponents\ComponentContext; -/** - * Integrates PHPFlasher with Livewire component lifecycle. - */ final readonly class LivewireListener { public function __construct( diff --git a/src/Laravel/EventListener/OctaneListener.php b/src/Laravel/EventListener/OctaneListener.php index 00030b87..273138d8 100644 --- a/src/Laravel/EventListener/OctaneListener.php +++ b/src/Laravel/EventListener/OctaneListener.php @@ -7,9 +7,6 @@ namespace Flasher\Laravel\EventListener; use Flasher\Prime\EventDispatcher\EventListener\NotificationLoggerListener; use Laravel\Octane\Events\RequestReceived; -/** - * Resets notification logger between Octane requests. - */ final readonly class OctaneListener { public function handle(RequestReceived $event): void diff --git a/src/Laravel/Facade/Flasher.php b/src/Laravel/Facade/Flasher.php index 5aea254c..3c8d9798 100644 --- a/src/Laravel/Facade/Flasher.php +++ b/src/Laravel/Facade/Flasher.php @@ -10,8 +10,6 @@ use Flasher\Prime\Stamp\StampInterface; use Illuminate\Support\Facades\Facade; /** - * Laravel facade for PHPFlasher with IDE autocompletion support. - * * @method static NotificationBuilder title(string $message) * @method static NotificationBuilder message(string $message) * @method static NotificationBuilder type(string $message) diff --git a/src/Laravel/FlasherServiceProvider.php b/src/Laravel/FlasherServiceProvider.php index 2d14c556..628961e0 100644 --- a/src/Laravel/FlasherServiceProvider.php +++ b/src/Laravel/FlasherServiceProvider.php @@ -42,9 +42,6 @@ use Illuminate\View\Compilers\BladeCompiler; use Laravel\Octane\Events\RequestReceived; use Livewire\LivewireManager; -/** - * Main service provider for Laravel integration. - */ final class FlasherServiceProvider extends PluginServiceProvider { public function register(): void diff --git a/src/Laravel/Http/Request.php b/src/Laravel/Http/Request.php index a36760fa..25167c2e 100644 --- a/src/Laravel/Http/Request.php +++ b/src/Laravel/Http/Request.php @@ -8,9 +8,6 @@ use Flasher\Prime\Http\RequestInterface; use Illuminate\Contracts\Session\Session; use Illuminate\Http\Request as LaravelRequest; -/** - * Adapter for Laravel HTTP requests. - */ final readonly class Request implements RequestInterface { public function __construct(private LaravelRequest $request) diff --git a/src/Laravel/Http/Response.php b/src/Laravel/Http/Response.php index c7ca1388..b0a1ac77 100644 --- a/src/Laravel/Http/Response.php +++ b/src/Laravel/Http/Response.php @@ -9,9 +9,6 @@ use Illuminate\Http\Response as LaravelResponse; use Symfony\Component\HttpFoundation\JsonResponse as SymfonyJsonResponse; use Symfony\Component\HttpFoundation\Response as SymfonyResponse; -/** - * Adapter for Laravel/Symfony HTTP responses. - */ final readonly class Response implements ResponseInterface { public function __construct(private SymfonyResponse $response) diff --git a/src/Laravel/Middleware/FlasherMiddleware.php b/src/Laravel/Middleware/FlasherMiddleware.php index 174cfbd0..06fa8161 100644 --- a/src/Laravel/Middleware/FlasherMiddleware.php +++ b/src/Laravel/Middleware/FlasherMiddleware.php @@ -10,9 +10,6 @@ use Flasher\Prime\Http\ResponseExtensionInterface; use Illuminate\Http\Request as LaravelRequest; use Symfony\Component\HttpFoundation\Response as SymfonyResponse; -/** - * Middleware for injecting PHPFlasher assets into responses. - */ final readonly class FlasherMiddleware { public function __construct(private ResponseExtensionInterface $responseExtension) diff --git a/src/Laravel/Middleware/SessionMiddleware.php b/src/Laravel/Middleware/SessionMiddleware.php index 9f1c4f5e..79ccda72 100644 --- a/src/Laravel/Middleware/SessionMiddleware.php +++ b/src/Laravel/Middleware/SessionMiddleware.php @@ -10,9 +10,6 @@ use Flasher\Prime\Http\RequestExtensionInterface; use Illuminate\Http\Request as LaravelRequest; use Symfony\Component\HttpFoundation\Response as SymfonyResponse; -/** - * Middleware for processing session flash messages. - */ final readonly class SessionMiddleware { public function __construct(private RequestExtensionInterface $requestExtension) diff --git a/src/Laravel/Storage/SessionBag.php b/src/Laravel/Storage/SessionBag.php index bec02643..82cf5aaa 100644 --- a/src/Laravel/Storage/SessionBag.php +++ b/src/Laravel/Storage/SessionBag.php @@ -8,9 +8,6 @@ use Flasher\Prime\Notification\Envelope; use Flasher\Prime\Storage\Bag\BagInterface; use Illuminate\Session\SessionManager; -/** - * Laravel session storage for PHPFlasher notifications. - */ final readonly class SessionBag implements BagInterface { public const ENVELOPES_NAMESPACE = 'flasher::envelopes'; diff --git a/src/Laravel/Support/PluginServiceProvider.php b/src/Laravel/Support/PluginServiceProvider.php index 228e55a9..08d6f862 100644 --- a/src/Laravel/Support/PluginServiceProvider.php +++ b/src/Laravel/Support/PluginServiceProvider.php @@ -11,9 +11,6 @@ use Illuminate\Contracts\Foundation\Application; use Illuminate\Contracts\Foundation\CachesConfiguration; use Illuminate\Support\ServiceProvider; -/** - * Base service provider for PHPFlasher plugins in Laravel. - */ abstract class PluginServiceProvider extends ServiceProvider { /** diff --git a/src/Laravel/Template/BladeTemplateEngine.php b/src/Laravel/Template/BladeTemplateEngine.php index 8e9c1033..6f646461 100644 --- a/src/Laravel/Template/BladeTemplateEngine.php +++ b/src/Laravel/Template/BladeTemplateEngine.php @@ -7,9 +7,6 @@ namespace Flasher\Laravel\Template; use Flasher\Prime\Template\TemplateEngineInterface; use Illuminate\View\Factory; -/** - * Laravel Blade adapter for PHPFlasher templates. - */ final readonly class BladeTemplateEngine implements TemplateEngineInterface { public function __construct(private Factory $blade) diff --git a/src/Laravel/Translation/Translator.php b/src/Laravel/Translation/Translator.php index aff1e7c1..82bccd39 100644 --- a/src/Laravel/Translation/Translator.php +++ b/src/Laravel/Translation/Translator.php @@ -7,9 +7,6 @@ namespace Flasher\Laravel\Translation; use Flasher\Prime\Translation\TranslatorInterface; use Illuminate\Translation\Translator as LaravelTranslator; -/** - * Laravel adapter for PHPFlasher translations. - */ final readonly class Translator implements TranslatorInterface { public function __construct(private LaravelTranslator $translator) diff --git a/src/Prime/EventDispatcher/Event/FilterEvent.php b/src/Prime/EventDispatcher/Event/FilterEvent.php index 75e3ae73..7b7b5fcf 100644 --- a/src/Prime/EventDispatcher/Event/FilterEvent.php +++ b/src/Prime/EventDispatcher/Event/FilterEvent.php @@ -8,9 +8,6 @@ use Flasher\Prime\Notification\Envelope; use Flasher\Prime\Storage\Filter\Filter; use Flasher\Prime\Storage\Filter\FilterInterface; -/** - * Event dispatched when notifications are being filtered. - */ final class FilterEvent { /** diff --git a/src/Prime/EventDispatcher/Event/NotificationEvents.php b/src/Prime/EventDispatcher/Event/NotificationEvents.php index 79d70c54..808d8614 100644 --- a/src/Prime/EventDispatcher/Event/NotificationEvents.php +++ b/src/Prime/EventDispatcher/Event/NotificationEvents.php @@ -7,8 +7,6 @@ namespace Flasher\Prime\EventDispatcher\Event; use Flasher\Prime\Notification\Envelope; /** - * Collector for notification envelopes. - * * @internal */ final class NotificationEvents diff --git a/src/Prime/EventDispatcher/Event/PersistEvent.php b/src/Prime/EventDispatcher/Event/PersistEvent.php index 4cb43c31..80f5418a 100644 --- a/src/Prime/EventDispatcher/Event/PersistEvent.php +++ b/src/Prime/EventDispatcher/Event/PersistEvent.php @@ -6,9 +6,6 @@ namespace Flasher\Prime\EventDispatcher\Event; use Flasher\Prime\Notification\Envelope; -/** - * Event dispatched when notifications are being persisted. - */ final class PersistEvent { /** diff --git a/src/Prime/EventDispatcher/Event/PostPersistEvent.php b/src/Prime/EventDispatcher/Event/PostPersistEvent.php index 3effcd3b..13ebd2e3 100644 --- a/src/Prime/EventDispatcher/Event/PostPersistEvent.php +++ b/src/Prime/EventDispatcher/Event/PostPersistEvent.php @@ -6,9 +6,6 @@ namespace Flasher\Prime\EventDispatcher\Event; use Flasher\Prime\Notification\Envelope; -/** - * Event dispatched after notifications are persisted. - */ final readonly class PostPersistEvent { /** diff --git a/src/Prime/EventDispatcher/Event/PostRemoveEvent.php b/src/Prime/EventDispatcher/Event/PostRemoveEvent.php index a06e2e4f..1c86038a 100644 --- a/src/Prime/EventDispatcher/Event/PostRemoveEvent.php +++ b/src/Prime/EventDispatcher/Event/PostRemoveEvent.php @@ -6,9 +6,6 @@ namespace Flasher\Prime\EventDispatcher\Event; use Flasher\Prime\Notification\Envelope; -/** - * Event dispatched after notifications are removed. - */ final readonly class PostRemoveEvent { /** diff --git a/src/Prime/EventDispatcher/Event/PostUpdateEvent.php b/src/Prime/EventDispatcher/Event/PostUpdateEvent.php index e92aee23..79c5931a 100644 --- a/src/Prime/EventDispatcher/Event/PostUpdateEvent.php +++ b/src/Prime/EventDispatcher/Event/PostUpdateEvent.php @@ -6,9 +6,6 @@ namespace Flasher\Prime\EventDispatcher\Event; use Flasher\Prime\Notification\Envelope; -/** - * Event dispatched after notification envelopes are updated. - */ final readonly class PostUpdateEvent { /** diff --git a/src/Prime/EventDispatcher/Event/PresentationEvent.php b/src/Prime/EventDispatcher/Event/PresentationEvent.php index 04c18523..90aa0138 100644 --- a/src/Prime/EventDispatcher/Event/PresentationEvent.php +++ b/src/Prime/EventDispatcher/Event/PresentationEvent.php @@ -6,9 +6,6 @@ namespace Flasher\Prime\EventDispatcher\Event; use Flasher\Prime\Notification\Envelope; -/** - * Event dispatched when notifications are being prepared for presentation. - */ final readonly class PresentationEvent { /** diff --git a/src/Prime/EventDispatcher/Event/RemoveEvent.php b/src/Prime/EventDispatcher/Event/RemoveEvent.php index 9cef23d6..d02d5973 100644 --- a/src/Prime/EventDispatcher/Event/RemoveEvent.php +++ b/src/Prime/EventDispatcher/Event/RemoveEvent.php @@ -6,9 +6,6 @@ namespace Flasher\Prime\EventDispatcher\Event; use Flasher\Prime\Notification\Envelope; -/** - * Event dispatched when notifications are being removed. - */ final class RemoveEvent { /** diff --git a/src/Prime/EventDispatcher/Event/ResponseEvent.php b/src/Prime/EventDispatcher/Event/ResponseEvent.php index b066bc18..6e2887bb 100644 --- a/src/Prime/EventDispatcher/Event/ResponseEvent.php +++ b/src/Prime/EventDispatcher/Event/ResponseEvent.php @@ -4,9 +4,6 @@ declare(strict_types=1); namespace Flasher\Prime\EventDispatcher\Event; -/** - * Event dispatched when a response is being prepared. - */ final class ResponseEvent { public function __construct( diff --git a/src/Prime/EventDispatcher/Event/StoppableEventInterface.php b/src/Prime/EventDispatcher/Event/StoppableEventInterface.php index e8063bd4..fb93d7a2 100644 --- a/src/Prime/EventDispatcher/Event/StoppableEventInterface.php +++ b/src/Prime/EventDispatcher/Event/StoppableEventInterface.php @@ -4,9 +4,6 @@ declare(strict_types=1); namespace Flasher\Prime\EventDispatcher\Event; -/** - * Contract for events that can stop propagation. - */ interface StoppableEventInterface { public function isPropagationStopped(): bool; diff --git a/src/Prime/EventDispatcher/Event/UpdateEvent.php b/src/Prime/EventDispatcher/Event/UpdateEvent.php index bb8a978a..27b78765 100644 --- a/src/Prime/EventDispatcher/Event/UpdateEvent.php +++ b/src/Prime/EventDispatcher/Event/UpdateEvent.php @@ -6,9 +6,6 @@ namespace Flasher\Prime\EventDispatcher\Event; use Flasher\Prime\Notification\Envelope; -/** - * Event dispatched when notifications are being updated. - */ final class UpdateEvent { /** diff --git a/src/Prime/EventDispatcher/EventListener/AddToStorageListener.php b/src/Prime/EventDispatcher/EventListener/AddToStorageListener.php index 2154fbc5..14f66f99 100644 --- a/src/Prime/EventDispatcher/EventListener/AddToStorageListener.php +++ b/src/Prime/EventDispatcher/EventListener/AddToStorageListener.php @@ -9,9 +9,6 @@ use Flasher\Prime\Notification\Envelope; use Flasher\Prime\Stamp\UnlessStamp; use Flasher\Prime\Stamp\WhenStamp; -/** - * Filters notifications before storage based on conditions. - */ final readonly class AddToStorageListener implements EventListenerInterface { public function __invoke(PersistEvent $event): void diff --git a/src/Prime/EventDispatcher/EventListener/ApplyPresetListener.php b/src/Prime/EventDispatcher/EventListener/ApplyPresetListener.php index 465ec672..0427025a 100644 --- a/src/Prime/EventDispatcher/EventListener/ApplyPresetListener.php +++ b/src/Prime/EventDispatcher/EventListener/ApplyPresetListener.php @@ -10,8 +10,6 @@ use Flasher\Prime\Notification\Envelope; use Flasher\Prime\Stamp\PresetStamp; /** - * Applies preset configurations to notifications. - * * @phpstan-type PresetType array{ * type: string, * title: string, diff --git a/src/Prime/EventDispatcher/EventListener/AttachDefaultStampsListener.php b/src/Prime/EventDispatcher/EventListener/AttachDefaultStampsListener.php index cf7f5a98..c8316840 100644 --- a/src/Prime/EventDispatcher/EventListener/AttachDefaultStampsListener.php +++ b/src/Prime/EventDispatcher/EventListener/AttachDefaultStampsListener.php @@ -13,9 +13,6 @@ use Flasher\Prime\Stamp\HopsStamp; use Flasher\Prime\Stamp\IdStamp; use Flasher\Prime\Stamp\PriorityStamp; -/** - * Ensures notifications have required stamps. - */ final readonly class AttachDefaultStampsListener implements EventListenerInterface { public function __invoke(PersistEvent|UpdateEvent $event): void diff --git a/src/Prime/EventDispatcher/EventListener/EnvelopeRemovalListener.php b/src/Prime/EventDispatcher/EventListener/EnvelopeRemovalListener.php index 1e01cc1e..030b8de7 100644 --- a/src/Prime/EventDispatcher/EventListener/EnvelopeRemovalListener.php +++ b/src/Prime/EventDispatcher/EventListener/EnvelopeRemovalListener.php @@ -8,9 +8,6 @@ use Flasher\Prime\EventDispatcher\Event\RemoveEvent; use Flasher\Prime\Notification\Envelope; use Flasher\Prime\Stamp\HopsStamp; -/** - * Manages notification lifecycle across requests. - */ final readonly class EnvelopeRemovalListener implements EventListenerInterface { public function __invoke(RemoveEvent $event): void diff --git a/src/Prime/EventDispatcher/EventListener/EventListenerInterface.php b/src/Prime/EventDispatcher/EventListener/EventListenerInterface.php index 134e8884..54687d17 100644 --- a/src/Prime/EventDispatcher/EventListener/EventListenerInterface.php +++ b/src/Prime/EventDispatcher/EventListener/EventListenerInterface.php @@ -4,9 +4,6 @@ declare(strict_types=1); namespace Flasher\Prime\EventDispatcher\EventListener; -/** - * Contract for event listeners. - */ interface EventListenerInterface { /** diff --git a/src/Prime/EventDispatcher/EventListener/NotificationLoggerListener.php b/src/Prime/EventDispatcher/EventListener/NotificationLoggerListener.php index 0f234608..4d1cc21c 100644 --- a/src/Prime/EventDispatcher/EventListener/NotificationLoggerListener.php +++ b/src/Prime/EventDispatcher/EventListener/NotificationLoggerListener.php @@ -9,8 +9,6 @@ use Flasher\Prime\EventDispatcher\Event\PersistEvent; use Flasher\Prime\EventDispatcher\Event\PresentationEvent; /** - * Logs all notifications that are dispatched and displayed. - * * @internal */ final class NotificationLoggerListener implements EventListenerInterface diff --git a/src/Prime/EventDispatcher/EventListener/TranslationListener.php b/src/Prime/EventDispatcher/EventListener/TranslationListener.php index 720d4392..9eedb3c0 100644 --- a/src/Prime/EventDispatcher/EventListener/TranslationListener.php +++ b/src/Prime/EventDispatcher/EventListener/TranslationListener.php @@ -12,9 +12,6 @@ use Flasher\Prime\Translation\EchoTranslator; use Flasher\Prime\Translation\Language; use Flasher\Prime\Translation\TranslatorInterface; -/** - * Applies translations to notifications during presentation. - */ final readonly class TranslationListener implements EventListenerInterface { private TranslatorInterface $translator; diff --git a/src/Prime/Factory/FlasherFactoryInterface.php b/src/Prime/Factory/FlasherFactoryInterface.php index 9918b7b5..3b07d9d2 100644 --- a/src/Prime/Factory/FlasherFactoryInterface.php +++ b/src/Prime/Factory/FlasherFactoryInterface.php @@ -5,8 +5,6 @@ declare(strict_types=1); namespace Flasher\Prime\Factory; /** - * Factory interface for creating Flasher-specific notification builders. - * * @mixin \Flasher\Prime\Notification\FlasherBuilder */ interface FlasherFactoryInterface extends NotificationFactoryInterface diff --git a/src/Prime/Factory/NotificationFactory.php b/src/Prime/Factory/NotificationFactory.php index 7880dd3b..bc8a1335 100644 --- a/src/Prime/Factory/NotificationFactory.php +++ b/src/Prime/Factory/NotificationFactory.php @@ -8,8 +8,6 @@ use Flasher\Prime\Storage\StorageManagerInterface; use Flasher\Prime\Support\Traits\ForwardsCalls; /** - * Base abstract class for notification factories. - * * @mixin \Flasher\Prime\Notification\NotificationBuilderInterface */ abstract class NotificationFactory implements NotificationFactoryInterface diff --git a/src/Prime/Factory/NotificationFactoryInterface.php b/src/Prime/Factory/NotificationFactoryInterface.php index c3738281..cfd31c66 100644 --- a/src/Prime/Factory/NotificationFactoryInterface.php +++ b/src/Prime/Factory/NotificationFactoryInterface.php @@ -7,8 +7,6 @@ namespace Flasher\Prime\Factory; use Flasher\Prime\Notification\NotificationBuilderInterface; /** - * Core factory abstraction. - * * @mixin \Flasher\Prime\Notification\NotificationBuilderInterface */ interface NotificationFactoryInterface diff --git a/src/Prime/Factory/NotificationFactoryLocator.php b/src/Prime/Factory/NotificationFactoryLocator.php index 1a239dc3..0f5685e3 100644 --- a/src/Prime/Factory/NotificationFactoryLocator.php +++ b/src/Prime/Factory/NotificationFactoryLocator.php @@ -6,9 +6,6 @@ namespace Flasher\Prime\Factory; use Flasher\Prime\Exception\FactoryNotFoundException; -/** - * Registry of available factories. - */ final class NotificationFactoryLocator implements NotificationFactoryLocatorInterface { /** diff --git a/src/Prime/Factory/NotificationFactoryLocatorInterface.php b/src/Prime/Factory/NotificationFactoryLocatorInterface.php index fbf32142..da5e1c0a 100644 --- a/src/Prime/Factory/NotificationFactoryLocatorInterface.php +++ b/src/Prime/Factory/NotificationFactoryLocatorInterface.php @@ -4,9 +4,6 @@ declare(strict_types=1); namespace Flasher\Prime\Factory; -/** - * Interface for the notification factory locator service. - */ interface NotificationFactoryLocatorInterface { /** diff --git a/src/Prime/Notification/Envelope.php b/src/Prime/Notification/Envelope.php index 504e5db3..3669c6dc 100644 --- a/src/Prime/Notification/Envelope.php +++ b/src/Prime/Notification/Envelope.php @@ -8,9 +8,6 @@ use Flasher\Prime\Stamp\PresentableStampInterface; use Flasher\Prime\Stamp\StampInterface; use Flasher\Prime\Support\Traits\ForwardsCalls; -/** - * Wraps a notification with metadata stamps. - */ final class Envelope implements NotificationInterface { use ForwardsCalls; diff --git a/src/Prime/Notification/Notification.php b/src/Prime/Notification/Notification.php index cd8568a3..93358fb7 100644 --- a/src/Prime/Notification/Notification.php +++ b/src/Prime/Notification/Notification.php @@ -4,9 +4,6 @@ declare(strict_types=1); namespace Flasher\Prime\Notification; -/** - * Default implementation of NotificationInterface. - */ final class Notification implements NotificationInterface { private string $title = ''; diff --git a/src/Prime/Stamp/CreatedAtStamp.php b/src/Prime/Stamp/CreatedAtStamp.php index 814c5bd6..49c97a93 100644 --- a/src/Prime/Stamp/CreatedAtStamp.php +++ b/src/Prime/Stamp/CreatedAtStamp.php @@ -4,9 +4,6 @@ declare(strict_types=1); namespace Flasher\Prime\Stamp; -/** - * Records when a notification was created. - */ final readonly class CreatedAtStamp implements OrderableStampInterface, PresentableStampInterface, StampInterface { private \DateTimeImmutable $createdAt; diff --git a/src/Prime/Stamp/OrderableStampInterface.php b/src/Prime/Stamp/OrderableStampInterface.php index 2366c59d..e0def512 100644 --- a/src/Prime/Stamp/OrderableStampInterface.php +++ b/src/Prime/Stamp/OrderableStampInterface.php @@ -4,9 +4,6 @@ declare(strict_types=1); namespace Flasher\Prime\Stamp; -/** - * Contract for stamps that affect notification ordering. - */ interface OrderableStampInterface { public function compare(StampInterface $orderable): int; diff --git a/src/Prime/Stamp/PresentableStampInterface.php b/src/Prime/Stamp/PresentableStampInterface.php index 0b5894de..50628085 100644 --- a/src/Prime/Stamp/PresentableStampInterface.php +++ b/src/Prime/Stamp/PresentableStampInterface.php @@ -4,9 +4,6 @@ declare(strict_types=1); namespace Flasher\Prime\Stamp; -/** - * Contract for stamps that contribute to presentation. - */ interface PresentableStampInterface { /** diff --git a/src/Prime/Stamp/StampInterface.php b/src/Prime/Stamp/StampInterface.php index 01d84f75..883b413e 100644 --- a/src/Prime/Stamp/StampInterface.php +++ b/src/Prime/Stamp/StampInterface.php @@ -4,9 +4,6 @@ declare(strict_types=1); namespace Flasher\Prime\Stamp; -/** - * Marker interface for notification metadata. - */ interface StampInterface { } diff --git a/src/Prime/Storage/Bag/ArrayBag.php b/src/Prime/Storage/Bag/ArrayBag.php index 32eacb76..d534c002 100644 --- a/src/Prime/Storage/Bag/ArrayBag.php +++ b/src/Prime/Storage/Bag/ArrayBag.php @@ -6,9 +6,6 @@ namespace Flasher\Prime\Storage\Bag; use Flasher\Prime\Notification\Envelope; -/** - * In-memory storage bag for notifications. - */ final class ArrayBag implements BagInterface { /** diff --git a/src/Prime/Storage/Bag/BagInterface.php b/src/Prime/Storage/Bag/BagInterface.php index 2ca03d71..ae946e5c 100644 --- a/src/Prime/Storage/Bag/BagInterface.php +++ b/src/Prime/Storage/Bag/BagInterface.php @@ -6,9 +6,6 @@ namespace Flasher\Prime\Storage\Bag; use Flasher\Prime\Notification\Envelope; -/** - * Contract for notification envelope storage containers. - */ interface BagInterface { /** diff --git a/src/Prime/Storage/Bag/StaticBag.php b/src/Prime/Storage/Bag/StaticBag.php index 3ce28e98..486777b7 100644 --- a/src/Prime/Storage/Bag/StaticBag.php +++ b/src/Prime/Storage/Bag/StaticBag.php @@ -6,9 +6,6 @@ namespace Flasher\Prime\Storage\Bag; use Flasher\Prime\Notification\Envelope; -/** - * Static/global storage bag for notifications. - */ final class StaticBag implements BagInterface { /** diff --git a/src/Prime/Storage/Filter/Criteria/CriteriaInterface.php b/src/Prime/Storage/Filter/Criteria/CriteriaInterface.php index fb13e041..cb9581e5 100644 --- a/src/Prime/Storage/Filter/Criteria/CriteriaInterface.php +++ b/src/Prime/Storage/Filter/Criteria/CriteriaInterface.php @@ -6,9 +6,6 @@ namespace Flasher\Prime\Storage\Filter\Criteria; use Flasher\Prime\Notification\Envelope; -/** - * Contract for notification filtering criteria. - */ interface CriteriaInterface { /** diff --git a/src/Prime/Storage/Filter/Criteria/DelayCriteria.php b/src/Prime/Storage/Filter/Criteria/DelayCriteria.php index e1a77df2..25215ce8 100644 --- a/src/Prime/Storage/Filter/Criteria/DelayCriteria.php +++ b/src/Prime/Storage/Filter/Criteria/DelayCriteria.php @@ -7,9 +7,6 @@ namespace Flasher\Prime\Storage\Filter\Criteria; use Flasher\Prime\Notification\Envelope; use Flasher\Prime\Stamp\DelayStamp; -/** - * Filters notifications by delay time. - */ final readonly class DelayCriteria implements CriteriaInterface { use RangeExtractor; diff --git a/src/Prime/Storage/Filter/Criteria/FilterCriteria.php b/src/Prime/Storage/Filter/Criteria/FilterCriteria.php index 15ce81f3..a69356ed 100644 --- a/src/Prime/Storage/Filter/Criteria/FilterCriteria.php +++ b/src/Prime/Storage/Filter/Criteria/FilterCriteria.php @@ -6,9 +6,6 @@ namespace Flasher\Prime\Storage\Filter\Criteria; use Flasher\Prime\Notification\Envelope; -/** - * Applies custom closure-based filters to notifications. - */ final class FilterCriteria implements CriteriaInterface { /** diff --git a/src/Prime/Storage/Filter/Criteria/HopsCriteria.php b/src/Prime/Storage/Filter/Criteria/HopsCriteria.php index b78d1788..be23f45c 100644 --- a/src/Prime/Storage/Filter/Criteria/HopsCriteria.php +++ b/src/Prime/Storage/Filter/Criteria/HopsCriteria.php @@ -7,9 +7,6 @@ namespace Flasher\Prime\Storage\Filter\Criteria; use Flasher\Prime\Notification\Envelope; use Flasher\Prime\Stamp\HopsStamp; -/** - * Filters notifications by hops count. - */ final readonly class HopsCriteria implements CriteriaInterface { use RangeExtractor; diff --git a/src/Prime/Storage/Filter/Criteria/LimitCriteria.php b/src/Prime/Storage/Filter/Criteria/LimitCriteria.php index e774ce43..67c45766 100644 --- a/src/Prime/Storage/Filter/Criteria/LimitCriteria.php +++ b/src/Prime/Storage/Filter/Criteria/LimitCriteria.php @@ -6,9 +6,6 @@ namespace Flasher\Prime\Storage\Filter\Criteria; use Flasher\Prime\Notification\Envelope; -/** - * Limits the number of notifications returned. - */ final readonly class LimitCriteria implements CriteriaInterface { private int $limit; diff --git a/src/Prime/Storage/Filter/Criteria/OrderByCriteria.php b/src/Prime/Storage/Filter/Criteria/OrderByCriteria.php index f381cbde..2c62629b 100644 --- a/src/Prime/Storage/Filter/Criteria/OrderByCriteria.php +++ b/src/Prime/Storage/Filter/Criteria/OrderByCriteria.php @@ -19,9 +19,6 @@ use Flasher\Prime\Stamp\TranslationStamp; use Flasher\Prime\Stamp\UnlessStamp; use Flasher\Prime\Stamp\WhenStamp; -/** - * Sorts notifications based on stamp attributes. - */ final class OrderByCriteria implements CriteriaInterface { public const ASC = 'ASC'; diff --git a/src/Prime/Storage/Filter/Criteria/PresenterCriteria.php b/src/Prime/Storage/Filter/Criteria/PresenterCriteria.php index 47a58c63..44b933e0 100644 --- a/src/Prime/Storage/Filter/Criteria/PresenterCriteria.php +++ b/src/Prime/Storage/Filter/Criteria/PresenterCriteria.php @@ -7,9 +7,6 @@ namespace Flasher\Prime\Storage\Filter\Criteria; use Flasher\Prime\Notification\Envelope; use Flasher\Prime\Stamp\PresenterStamp; -/** - * Filters notifications by presenter compatibility. - */ final class PresenterCriteria implements CriteriaInterface { private string $presenter; diff --git a/src/Prime/Storage/Filter/Criteria/PriorityCriteria.php b/src/Prime/Storage/Filter/Criteria/PriorityCriteria.php index 88ce0b82..18345b8a 100644 --- a/src/Prime/Storage/Filter/Criteria/PriorityCriteria.php +++ b/src/Prime/Storage/Filter/Criteria/PriorityCriteria.php @@ -7,9 +7,6 @@ namespace Flasher\Prime\Storage\Filter\Criteria; use Flasher\Prime\Notification\Envelope; use Flasher\Prime\Stamp\PriorityStamp; -/** - * Filters notifications by priority. - */ final readonly class PriorityCriteria implements CriteriaInterface { use RangeExtractor; diff --git a/src/Prime/Storage/Filter/Criteria/StampsCriteria.php b/src/Prime/Storage/Filter/Criteria/StampsCriteria.php index 1b3453d0..067d323f 100644 --- a/src/Prime/Storage/Filter/Criteria/StampsCriteria.php +++ b/src/Prime/Storage/Filter/Criteria/StampsCriteria.php @@ -6,9 +6,6 @@ namespace Flasher\Prime\Storage\Filter\Criteria; use Flasher\Prime\Notification\Envelope; -/** - * Filters notifications by the presence of specific stamps. - */ final class StampsCriteria implements CriteriaInterface { public const STRATEGY_AND = 'and'; diff --git a/src/Prime/Storage/Filter/Filter.php b/src/Prime/Storage/Filter/Filter.php index 541eb226..04f4a586 100644 --- a/src/Prime/Storage/Filter/Filter.php +++ b/src/Prime/Storage/Filter/Filter.php @@ -7,9 +7,6 @@ namespace Flasher\Prime\Storage\Filter; use Flasher\Prime\Notification\Envelope; use Flasher\Prime\Storage\Filter\Criteria\CriteriaInterface; -/** - * Default implementation of the filter interface. - */ final class Filter implements FilterInterface { /** diff --git a/src/Prime/Support/Traits/ForwardsCalls.php b/src/Prime/Support/Traits/ForwardsCalls.php index f96114d2..8f2abeab 100644 --- a/src/Prime/Support/Traits/ForwardsCalls.php +++ b/src/Prime/Support/Traits/ForwardsCalls.php @@ -2,23 +2,6 @@ declare(strict_types=1); -/** - * ForwardsCalls Trait. - * - * This file contains the ForwardsCalls trait, which is used to forward method calls - * to another object. This trait is originally part of the Laravel framework. - * - * @see https://github.com/laravel/framework/blob/10.x/src/Illuminate/Support/Traits/ForwardsCalls.php - * - * Laravel is an open-source PHP framework, which this trait is a part of. The original - * source code has been modified to suit the needs of the PHP-Flasher project. - * - * @copyright Laravel - * @license MIT License - * - * @see https://laravel.com/docs/10.x/ - */ - namespace Flasher\Prime\Support\Traits; trait ForwardsCalls diff --git a/src/Symfony/Attribute/AsFlasherFactory.php b/src/Symfony/Attribute/AsFlasherFactory.php index 54ff1170..22cdcd50 100644 --- a/src/Symfony/Attribute/AsFlasherFactory.php +++ b/src/Symfony/Attribute/AsFlasherFactory.php @@ -4,9 +4,6 @@ declare(strict_types=1); namespace Flasher\Symfony\Attribute; -/** - * Attribute for tagging notification factories. - */ #[\Attribute(\Attribute::TARGET_CLASS)] final readonly class AsFlasherFactory { diff --git a/src/Symfony/Attribute/AsFlasherPresenter.php b/src/Symfony/Attribute/AsFlasherPresenter.php index c09b076d..33affd2c 100644 --- a/src/Symfony/Attribute/AsFlasherPresenter.php +++ b/src/Symfony/Attribute/AsFlasherPresenter.php @@ -4,9 +4,6 @@ declare(strict_types=1); namespace Flasher\Symfony\Attribute; -/** - * Attribute for tagging response presenters. - */ #[\Attribute(\Attribute::TARGET_CLASS)] final readonly class AsFlasherPresenter { diff --git a/src/Symfony/Command/InstallCommand.php b/src/Symfony/Command/InstallCommand.php index 90fc5f7a..0a82986f 100644 --- a/src/Symfony/Command/InstallCommand.php +++ b/src/Symfony/Command/InstallCommand.php @@ -16,9 +16,6 @@ use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Finder\Finder; use Symfony\Component\HttpKernel\KernelInterface; -/** - * Console command for installing PHPFlasher resources. - */ final class InstallCommand extends Command { public function __construct(private readonly AssetManagerInterface $assetManager) diff --git a/src/Symfony/Component/FlasherComponent.php b/src/Symfony/Component/FlasherComponent.php index d810d266..b97d35d1 100644 --- a/src/Symfony/Component/FlasherComponent.php +++ b/src/Symfony/Component/FlasherComponent.php @@ -4,9 +4,6 @@ declare(strict_types=1); namespace Flasher\Symfony\Component; -/** - * Twig component for rendering PHPFlasher notifications. - */ final class FlasherComponent { /** @var array */ diff --git a/src/Symfony/EventListener/FlasherListener.php b/src/Symfony/EventListener/FlasherListener.php index 6d5256a3..1fcfec90 100644 --- a/src/Symfony/EventListener/FlasherListener.php +++ b/src/Symfony/EventListener/FlasherListener.php @@ -10,9 +10,6 @@ use Flasher\Symfony\Http\Response; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpKernel\Event\ResponseEvent; -/** - * Injects PHPFlasher assets into responses. - */ final readonly class FlasherListener implements EventSubscriberInterface { public function __construct(private ResponseExtensionInterface $responseExtension) diff --git a/src/Symfony/EventListener/SessionListener.php b/src/Symfony/EventListener/SessionListener.php index b781b8c8..7ad2e64c 100644 --- a/src/Symfony/EventListener/SessionListener.php +++ b/src/Symfony/EventListener/SessionListener.php @@ -10,9 +10,6 @@ use Flasher\Symfony\Http\Response; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpKernel\Event\ResponseEvent; -/** - * Processes session flash messages. - */ final readonly class SessionListener implements EventSubscriberInterface { public function __construct(private RequestExtensionInterface $requestExtension) diff --git a/src/Symfony/FlasherSymfonyBundle.php b/src/Symfony/FlasherSymfonyBundle.php index 3260780d..24351a12 100644 --- a/src/Symfony/FlasherSymfonyBundle.php +++ b/src/Symfony/FlasherSymfonyBundle.php @@ -13,9 +13,6 @@ use Psr\Container\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Extension\ExtensionInterface; -/** - * Main bundle for PHPFlasher Symfony integration. - */ final class FlasherSymfonyBundle extends Support\PluginBundle // Symfony\Component\HttpKernel\Bundle\Bundle { public function boot(): void diff --git a/src/Symfony/Http/Request.php b/src/Symfony/Http/Request.php index 894c2b08..fbb1f4da 100644 --- a/src/Symfony/Http/Request.php +++ b/src/Symfony/Http/Request.php @@ -10,9 +10,6 @@ use Symfony\Component\HttpFoundation\Request as SymfonyRequest; use Symfony\Component\HttpFoundation\Session\FlashBagAwareSessionInterface; use Symfony\Component\HttpFoundation\Session\SessionInterface; -/** - * Adapter for Symfony's HTTP request. - */ final readonly class Request implements RequestInterface { public function __construct(private SymfonyRequest $request) diff --git a/src/Symfony/Http/Response.php b/src/Symfony/Http/Response.php index ee8073a6..890b9c5f 100644 --- a/src/Symfony/Http/Response.php +++ b/src/Symfony/Http/Response.php @@ -8,9 +8,6 @@ use Flasher\Prime\Http\ResponseInterface; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Response as SymfonyResponse; -/** - * Adapter for Symfony's HTTP response. - */ final readonly class Response implements ResponseInterface { public function __construct(private SymfonyResponse $response) diff --git a/src/Symfony/Profiler/FlasherDataCollector.php b/src/Symfony/Profiler/FlasherDataCollector.php index f50f349a..b53bfcf1 100644 --- a/src/Symfony/Profiler/FlasherDataCollector.php +++ b/src/Symfony/Profiler/FlasherDataCollector.php @@ -15,8 +15,6 @@ use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\VarDumper\Cloner\Data; /** - * Collects PHPFlasher data for the Symfony profiler. - * * @phpstan-type NotificationShape array{ * title: string, * message: string, diff --git a/src/Symfony/Storage/FallbackSession.php b/src/Symfony/Storage/FallbackSession.php index 7ede012b..5ac8af62 100644 --- a/src/Symfony/Storage/FallbackSession.php +++ b/src/Symfony/Storage/FallbackSession.php @@ -4,9 +4,6 @@ declare(strict_types=1); namespace Flasher\Symfony\Storage; -/** - * In-memory session storage fallback. - */ final class FallbackSession implements FallbackSessionInterface { /** @var array */ diff --git a/src/Symfony/Storage/FallbackSessionInterface.php b/src/Symfony/Storage/FallbackSessionInterface.php index 6f1c9cdf..bf80e5ca 100644 --- a/src/Symfony/Storage/FallbackSessionInterface.php +++ b/src/Symfony/Storage/FallbackSessionInterface.php @@ -4,9 +4,6 @@ declare(strict_types=1); namespace Flasher\Symfony\Storage; -/** - * Contract for alternative session storage. - */ interface FallbackSessionInterface { public function get(string $name, mixed $default = null): mixed; diff --git a/src/Symfony/Storage/SessionBag.php b/src/Symfony/Storage/SessionBag.php index 5115cafa..c3bf4c18 100644 --- a/src/Symfony/Storage/SessionBag.php +++ b/src/Symfony/Storage/SessionBag.php @@ -10,9 +10,6 @@ use Symfony\Component\HttpFoundation\Exception\SessionNotFoundException; use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\HttpFoundation\Session\SessionInterface; -/** - * Symfony session storage for PHPFlasher notifications. - */ final readonly class SessionBag implements BagInterface { public const ENVELOPES_NAMESPACE = 'flasher::envelopes'; diff --git a/src/Symfony/Support/PluginBundle.php b/src/Symfony/Support/PluginBundle.php index 7626357d..bbcc10d1 100644 --- a/src/Symfony/Support/PluginBundle.php +++ b/src/Symfony/Support/PluginBundle.php @@ -10,9 +10,6 @@ use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; use Symfony\Component\HttpKernel\Bundle\AbstractBundle; -/** - * Base class for PHPFlasher plugin bundles. - */ abstract class PluginBundle extends AbstractBundle implements PluginBundleInterface { abstract public function createPlugin(): PluginInterface; diff --git a/src/Symfony/Support/PluginBundleInterface.php b/src/Symfony/Support/PluginBundleInterface.php index 62c36940..b65d8f47 100644 --- a/src/Symfony/Support/PluginBundleInterface.php +++ b/src/Symfony/Support/PluginBundleInterface.php @@ -6,9 +6,6 @@ namespace Flasher\Symfony\Support; use Flasher\Prime\Plugin\PluginInterface; -/** - * Contract for PHPFlasher plugin bundles. - */ interface PluginBundleInterface { public function createPlugin(): PluginInterface; diff --git a/src/Symfony/Template/TwigTemplateEngine.php b/src/Symfony/Template/TwigTemplateEngine.php index 6c97058c..04fae24e 100644 --- a/src/Symfony/Template/TwigTemplateEngine.php +++ b/src/Symfony/Template/TwigTemplateEngine.php @@ -7,9 +7,6 @@ namespace Flasher\Symfony\Template; use Flasher\Prime\Template\TemplateEngineInterface; use Twig\Environment; -/** - * Adapter for Symfony's Twig template engine. - */ final readonly class TwigTemplateEngine implements TemplateEngineInterface { public function __construct(private ?Environment $twig = null) diff --git a/src/Symfony/Translation/Translator.php b/src/Symfony/Translation/Translator.php index 49d00750..fa076cd4 100644 --- a/src/Symfony/Translation/Translator.php +++ b/src/Symfony/Translation/Translator.php @@ -8,9 +8,6 @@ use Flasher\Prime\Translation\TranslatorInterface; use Symfony\Component\Translation\TranslatorBagInterface; use Symfony\Contracts\Translation\TranslatorInterface as SymfonyTranslatorInterface; -/** - * Adapter for Symfony's translation service. - */ final readonly class Translator implements TranslatorInterface { public function __construct(private SymfonyTranslatorInterface $translator) diff --git a/src/Symfony/Twig/FlasherTwigExtension.php b/src/Symfony/Twig/FlasherTwigExtension.php index 2152d04d..bdd8270e 100644 --- a/src/Symfony/Twig/FlasherTwigExtension.php +++ b/src/Symfony/Twig/FlasherTwigExtension.php @@ -8,9 +8,6 @@ use Flasher\Prime\FlasherInterface; use Twig\Extension\AbstractExtension; use Twig\TwigFunction; -/** - * Twig extension for rendering PHPFlasher notifications. - */ final class FlasherTwigExtension extends AbstractExtension { public function __construct(private readonly FlasherInterface $flasher)