for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Sylius\Component\Core\Dashboard;
final class Interval
{
/** @var string */
private $interval;
private function __construct(string $interval)
$this->interval = $interval;
}
public function asString(): string
return $this->interval;
public static function year(): self
return new static('year');
public static function month(): self
return new static('month');
public static function week(): self
return new static('week');
public static function day(): self
return new static('day');