- __construct() -- Create a new Conditional
- aboveAverage()
- beginsWith() -- Applies a style if the cell value starts with the specified text
- belowAverage()
- between() -- The cell value is between two given values
- colorScale()
- colorScaleMax()
- colorScaleMin()
- colorScaleNum()
- contains() -- Applies a style if the cell value contains the specified text.
- dataBar() -- Colored data bar inside a cell
- duplicateValues()
- isEmpty() -- Applies a style if the cell is empty
- endsWith() -- Applies a style if the cell value ends with the specified text
- equals() -- The cell value is equal to the given value
- expression() -- Applies the style if the expression evaluates to TRUE
- greaterThan() -- The cell value is greater than the specified value
- greaterThanOrEqual() -- The cell value is greater than or equal to the specified value
- lessThan() -- The cell value is less than the specified value
- lessThanOrEqual() -- The cell value is less than or equal to the specified value
- low()
- lowPercent()
- make() -- Cell value is compared to a specified value or formula
- notBetween() -- The cell value is between two given values
- notContains() -- Applies a style if the cell value does not contain the specified text.
- notEquals() -- The cell value is not equal to the specified value
- top()
- topPercent()
- uniqueValues()
- setDirectionRtl() -- Determines the direction of the bars
- setDxfId()
- setFillColor()
- setFontColor()
- setGradient() -- Enables or disables the gradient style of the bars
- setShowValue() -- Controls the display of the value in a cell
- setSqref()
- getStyle()
- setStyle()
- toXml()
public function __construct(string $type, string $operator, $options, $style)
Create a new Conditional
$type
$operator
$options
$style
public static function aboveAverage(array $style): Conditional
array $style
public static function beginsWith(string $text,
?array $style = null): Conditional
Applies a style if the cell value starts with the specified text
string $text
array|null $style
public static function belowAverage(array $style): Conditional
array $style
public static function between(array $values,
?array $style = null): Conditional
The cell value is between two given values
int[]|float[] $values
array|null $style
public static function colorScale(string $color1, string $color2,
?string $color3 = null): Conditional
string $color1
string $color2
string|null $color3
public static function colorScaleMax(string $color): Conditional
string $color
public static function colorScaleMin(string $color): Conditional
string $color
public static function colorScaleNum(array $values, string $color1,
string $color2,
?string $color3 = null): Conditional
array $values
string $color1
string $color2
string|null $color3
public static function contains(string $text,
?array $style = null): Conditional
Applies a style if the cell value contains the specified text.
string $text
array|null $style
public static function dataBar(string $color): Conditional
Colored data bar inside a cell
string $color
public static function duplicateValues(array $style): Conditional
array $style
public static function isEmpty(?string $cell = null,
?array $style = null): Conditional
Applies a style if the cell is empty
string|null $cell
array|null $style
public static function endsWith(string $text,
?array $style = null): Conditional
Applies a style if the cell value ends with the specified text
string $text
array|null $style
public static function equals($value, ?array $style = null): Conditional
The cell value is equal to the given value
int|float|string $value
array|null $style
public static function expression(string $formula,
?array $style = null): Conditional
Applies the style if the expression evaluates to TRUE
string $formula
array|null $style
public static function greaterThan($value, ?array $style = null): Conditional
The cell value is greater than the specified value
int|float|string $value
array|null $style
public static function greaterThanOrEqual($value,
?array $style = null): Conditional
The cell value is greater than or equal to the specified value
int|float|string $value
array|null $style
public static function lessThan($value, ?array $style = null): Conditional
The cell value is less than the specified value
int|float|string $value
array|null $style
public static function lessThanOrEqual($value,
?array $style = null): Conditional
The cell value is less than or equal to the specified value
int|float|string $value
array|null $style
public static function low(int $rank, array $style): Conditional
int $rank
array $style
public static function lowPercent(int $rank, array $style): Conditional
int $rank
array $style
public static function make(string $operator, $formula,
?array $style = null): Conditional
Cell value is compared to a specified value or formula
string $operator
int|float|string|array $formula
array|null $style
public static function notBetween(array $values,
?array $style = null): Conditional
The cell value is between two given values
int[]|float[] $values
array|null $style
public static function notContains(string $text,
?array $style = null): Conditional
Applies a style if the cell value does not contain the specified text.
string $text
array|null $style
public static function notEquals($value, ?array $style = null): Conditional
The cell value is not equal to the specified value
int|float|string $value
array|null $style
public static function top(int $rank, array $style): Conditional
int $rank
array $style
public static function topPercent(int $rank, array $style): Conditional
int $rank
array $style
public static function uniqueValues(array $style): Conditional
array $style
public function setDirectionRtl(bool $value): Conditional
Determines the direction of the bars
bool $value
public function setDxfId(int $dxfId): Conditional
int $dxfId
public function setFillColor($color): Conditional
$color
public function setFontColor($color): Conditional
$color
public function setGradient(bool $value): Conditional
Enables or disables the gradient style of the bars
bool $value
public function setShowValue(bool $value): Conditional
Controls the display of the value in a cell
bool $value
public function setSqref(avadim\FastExcelWriter\Sheet $sheet,
string $sqref): Conditional
Sheet $sheet
string $sqref
public function getStyle(): ?array
None
public function setStyle($style): Conditional
string|array $style
public function toXml(int $priority, $formulaConverter): string
int $priority
$formulaConverter