mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-08 16: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\Common\Util\DateRange;
|
||||
|
||||
class InDateRange extends BaseSpecification
|
||||
{
|
||||
private ?DateRange $dateRange;
|
||||
private string $field;
|
||||
|
||||
public function __construct(?DateRange $dateRange, string $field = 'date')
|
||||
public function __construct(private ?DateRange $dateRange, private string $field = 'date')
|
||||
{
|
||||
parent::__construct();
|
||||
$this->dateRange = $dateRange;
|
||||
$this->field = $field;
|
||||
}
|
||||
|
||||
protected function getSpec(): Specification
|
||||
|
||||
Reference in New Issue
Block a user