for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace DH\NavigationBundle\Model;
use DH\NavigationBundle\Helper\FormatHelper;
class Duration
{
/**
* @var int
*/
private $value;
public function __construct(int $value)
$this->value = $value;
}
* @return string
public function getFormattedValue(): string
return FormatHelper::formatTime($this->value);
* @return int
public function getValue(): int
return $this->value;
public function __toString(): string
return $this->getFormattedValue();