<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity()
* @ORM\Table(name="program")
*
* Defines the properties of the Tag entity to represent the subcategory tags.
*
* See https://symfony.com/doc/current/doctrine.html#creating-an-entity-class
*
* @author Yonel Ceruto <yonelceruto@gmail.com>
*/
class Program {
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private ?int $id = null;
/**
* @ORM\Column(type="string", nullable=true)
*/
private ?string $day = null;
/**
* @ORM\Column(type="string", nullable=true)
*/
private ?string $description = null;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Experience", inversedBy="experiences")
*/
private $experience;
/**
* @ORM\Column(type="string", nullable=true)
*/
private ?string $image = null;
public function __construct() {
}
public function getId(): ?int {
return $this->id;
}
public function getDay(): ?string {
return $this->day;
}
public function getDescription(): ?string {
return $this->description;
}
public function getExperience() {
return $this->experience;
}
public function setId(?int $id): void {
$this->id = $id;
}
public function setDay(?string $day): void {
$this->day = $day;
}
public function setDescription(?string $description): void {
$this->description = $description;
}
public function setExperience($experience): void {
$this->experience = $experience;
}
}