| 1 | <?php |
||
| 7 | final class SlugSuffixGenerationEvent |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | private $uniqueRegisterKey; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var array |
||
| 16 | */ |
||
| 17 | private $record; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | private $slug; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * SlugSuffixGenerationEvent constructor. |
||
| 26 | * |
||
| 27 | * @param string $uniqueRegisterKey |
||
| 28 | * @param array $record |
||
| 29 | * @param string $slug |
||
| 30 | */ |
||
| 31 | public function __construct(string $uniqueRegisterKey, array $record, string $slug) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | public function getUniqueRegisterKey(): string |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return array |
||
| 48 | */ |
||
| 49 | public function getRecord(): array |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | public function getSlug(): string |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @param string $slug |
||
| 64 | */ |
||
| 65 | public function setSlug(string $slug): void |
||
| 69 | } |
||
| 70 |