12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <?php
- namespace Timestampable\Fixture;
- use Gedmo\Mapping\Annotation as Gedmo;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * @ORM\MappedSuperclass
- */
- class MappedSupperClass
- {
- /**
- * @var integer $id
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- protected $id;
- /**
- * @var string $locale
- *
- * @Gedmo\Locale
- */
- protected $locale;
- /**
- * @var string $title
- *
- * @Gedmo\Translatable
- * @ORM\Column(name="name", type="string", length=255)
- */
- protected $name;
- /**
- * @var \DateTime $createdAt
- *
- * @ORM\Column(name="created_at", type="datetime")
- * @Gedmo\Timestampable(on="create")
- */
- protected $createdAt;
- /**
- * Get id
- *
- * @return integer $id
- * @codeCoverageIgnore
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set name
- *
- * @param string $name
- */
- public function setName($name)
- {
- $this->name = $name;
- }
- /**
- * Get name
- *
- * @return string $name
- */
- public function getName()
- {
- return $this->name;
- }
- /**
- * Get createdAt
- *
- * @return \DateTime $createdAt
- */
- public function getCreatedAt()
- {
- return $this->createdAt;
- }
- }
|