<?php
namespace App\Entity;
use App\Repository\CronRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=CronRepository::class)
*/
class Cron
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $name;
/**
* @ORM\Column(type="string", length=255)
*/
private $route;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $enabled;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $minute;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $hour;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $day;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $weekday;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $month;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $year;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getRoute(): ?string
{
return $this->route;
}
public function setRoute(string $route): self
{
$this->route = $route;
return $this;
}
public function getEnabled(): ?bool
{
return $this->enabled;
}
public function setEnabled(?bool $enabled): self
{
$this->enabled = $enabled;
return $this;
}
public function getMinute(): ?string
{
return $this->minute;
}
public function setMinute(?string $minute): self
{
$this->minute = $minute;
return $this;
}
public function getHour(): ?string
{
return $this->hour;
}
public function setHour(?string $hour): self
{
$this->hour = $hour;
return $this;
}
public function getDay(): ?string
{
return $this->day;
}
public function setDay(?string $day): self
{
$this->day = $day;
return $this;
}
public function getWeekday(): ?string
{
return $this->weekday;
}
public function setWeekday(?string $weekday): self
{
$this->weekday = $weekday;
return $this;
}
public function getMonth(): ?string
{
return $this->month;
}
public function setMonth(?string $month): self
{
$this->month = $month;
return $this;
}
public function getYear(): ?string
{
return $this->year;
}
public function setYear(?string $year): self
{
$this->year = $year;
return $this;
}
}