for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Sco\Admin\Display\Filters;
class DateRange extends Filter
{
protected $type = 'daterange';
protected $pickerFormat = 'yyyy-MM-dd';
protected $defaultValue = [];
protected $operator = 'between';
/**
* @return string
*/
public function getPickerFormat(): string
return $this->pickerFormat;
}
* @param string $pickerFormat
*
* @return DateRange
public function setPickerFormat(string $pickerFormat): DateRange
$this->pickerFormat = $pickerFormat;
return $this;
public function toArray()
return parent::toArray() + [
'pickerFormat' => $this->getPickerFormat(),
];