for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* File containing the {@see Mistralys\WidthsCalculator\Calculator\Column} class.
*
* @package WidthsCalculator
* @see Mistralys\WidthsCalculator\Calculator\Column
*/
declare (strict_types=1);
namespace Mistralys\WidthsCalculator\Calculator;
* Container class for a single column in the values list.
* @author Sebastian Mordziol <[email protected]>
class Column
{
private string $name;
private float $value;
private bool $missing;
public function __construct(string $name, float $value)
$this->name = $name;
$this->value = $value;
$this->missing = $value <= 0;
}
public function getName() : string
return $this->name;
public function isMissing() : bool
return $this->missing;
public function getValue() : float
return $this->value;
public function setValue(float $value) : void
public function makeMissing() : void
$this->missing = true;