12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <?php
- namespace Sortable\Fixture;
- use Gedmo\Mapping\Annotation as Gedmo;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * @ORM\Entity(repositoryClass="Gedmo\Sortable\Entity\Repository\SortableRepository")
- */
- class Event
- {
- /**
- * @var int
- *
- * @ORM\Id
- * @ORM\GeneratedValue
- * @ORM\Column(type="integer")
- */
- private $id;
- /**
- * @var \DateTime
- *
- * @Gedmo\SortableGroup
- * @ORM\Column(type="datetime")
- */
- private $dateTime;
- /**
- * @var string
- *
- * @ORM\Column(type="string", length=255)
- */
- private $name;
- /**
- * @var int
- *
- * @Gedmo\SortablePosition
- * @ORM\Column(type="integer")
- */
- private $position;
- public function getId()
- {
- return $this->id;
- }
- public function setDateTime(\DateTime $date)
- {
- $this->dateTime = $date;
- }
- public function getDateTime()
- {
- return $this->dateTime;
- }
- public function setName($name)
- {
- $this->name = $name;
- }
- public function getName()
- {
- return $this->name;
- }
- public function setPosition($position)
- {
- $this->position = $position;
- }
- public function getPosition()
- {
- return $this->position;
- }
- }
|