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:
@@ -11,14 +11,9 @@ use Shlinkio\Shlink\Rest\Entity\ApiKey;
|
||||
|
||||
class WithApiKeySpecsEnsuringJoin extends BaseSpecification
|
||||
{
|
||||
private ?ApiKey $apiKey;
|
||||
private string $fieldToJoin;
|
||||
|
||||
public function __construct(?ApiKey $apiKey, string $fieldToJoin = 'shortUrls')
|
||||
public function __construct(private ?ApiKey $apiKey, private string $fieldToJoin = 'shortUrls')
|
||||
{
|
||||
parent::__construct();
|
||||
$this->apiKey = $apiKey;
|
||||
$this->fieldToJoin = $fieldToJoin;
|
||||
}
|
||||
|
||||
protected function getSpec(): Specification
|
||||
|
||||
Reference in New Issue
Block a user