mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-10 17:23:12 +08:00
Migrated all constructor props to property promotion when possible
This commit is contained in:
@@ -9,13 +9,8 @@ use Shlinkio\Shlink\Rest\ApiKey\Role;
|
||||
|
||||
final class RoleDefinition
|
||||
{
|
||||
private string $roleName;
|
||||
private array $meta;
|
||||
|
||||
private function __construct(string $roleName, array $meta)
|
||||
private function __construct(private string $roleName, private array $meta)
|
||||
{
|
||||
$this->roleName = $roleName;
|
||||
$this->meta = $meta;
|
||||
}
|
||||
|
||||
public static function forAuthoredShortUrls(): self
|
||||
|
||||
Reference in New Issue
Block a user