Lines Matching defs:length
8 * Represents a conditional length / value
23 * @var string - the length value (may be breakpoint conditional)
28 * @var string - the length value without breakpoint
30 private $length;
36 * The number in a length string
69 $this->length = $value;
72 $this->length = $conditionalValue->getValue();
149 throw new ExceptionBadArgument("The length ratio ($ratio) is greater than 1. It should be less than 1 to get a col class.");
200 return $this->length;
220 return $this->length;
223 * A length value may be also `fit-content`
230 if ($this->length === "fit") {
233 return $this->length;
261 * Does the length value has an unit ?
263 preg_match("/^([0-9.]+)([^0-9]*)$/i", $this->length, $matches, PREG_OFFSET_CAPTURE);
272 throw new ExceptionBadSyntax("The number value ($localNumber) of the length value ($this->length) is not a valid float format.");
293 preg_match("/^([0-9]+):([0-9]+)$/i", $this->length, $matches, PREG_OFFSET_CAPTURE);
302 throw new ExceptionBadSyntax("The number value ($numerator) of the length value ($this->length) is not a valid float format.");
309 throw new ExceptionBadSyntax("The number value ($denominator) of the length value ($this->length) is not a valid float format.");
330 throw new ExceptionBadArgument("The denominator of the conditional length ($this) is 0. You can't ask a ratio.");