Video settings * * @property MinMaxRange value * * @api */ class Fps extends BaseQualifier { const VALUE_CLASS = MinMaxRange::class; /** * @var string $key Serialization key. */ protected static $key = 'fps'; /** * FPS constructor. * * @param $min * @param null $max */ public function __construct($min = null, $max = null) { parent::__construct($min, $max); } /** * Sets the minimum frame rate. * * @param int $min The minimum frame rate in frames per second. * * @return $this */ public function min($min) { $this->value->min($min); return $this; } /** * Sets the maximum frame rate. * * @param int $max The maximum frame rate in frames per second. * * @return $this */ public function max($max) { $this->value->max($max); return $this; } /** * Creates a new instance using provided qualifiers array. * * @param string|array $qualifiers The qualifiers. * * @return Fps */ public static function fromParams($qualifiers) { $qualifiers = ArrayUtils::build($qualifiers); return (new static(...$qualifiers)); } }