for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace FilmTools\SpeedPoint;
abstract class SpeedPointAbstract implements SpeedPointInterface
{
/**
* @var float
*/
public $value;
* @var string
public $type;
* @inheritDoc
public function valid() : bool
return !is_null($value = $this->getValue());
}
public function getType() : ?string
return $this->type;
* inheritDoc
public function getValue() : ?float
return $this->value;
* Subtracts log10( 2 ) from the Speed point value.
*
public function getSpeedLoss() : ?float
if (!is_null($value = $this->getValue()))
return $value - log10(2);
return null;
* Calculates the number of DIN steps for exposure compensation.
public function getEICorrection() : ?float
if (!is_null($speedloss = $this->getSpeedLoss()))
return $speedloss * 10 * -1;