mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
3f920f2c01
Removes verbose documentation while preserving type annotations.
26 lines
453 B
PHP
26 lines
453 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Flasher\Prime\Stamp;
|
|
|
|
final readonly class PluginStamp implements PresentableStampInterface, StampInterface
|
|
{
|
|
public function __construct(private string $plugin)
|
|
{
|
|
}
|
|
|
|
public function getPlugin(): string
|
|
{
|
|
return $this->plugin;
|
|
}
|
|
|
|
/**
|
|
* @return array{plugin: string}
|
|
*/
|
|
public function toArray(): array
|
|
{
|
|
return ['plugin' => $this->plugin];
|
|
}
|
|
}
|