57 lines
827 B
PHP
57 lines
827 B
PHP
<?php
|
|
|
|
namespace Doctrine\Tests\Models\DDC1590;
|
|
|
|
/**
|
|
* @Entity
|
|
* @MappedSuperClass
|
|
*/
|
|
abstract class DDC1590Entity
|
|
{
|
|
/**
|
|
* @Id
|
|
* @Column(type="integer")
|
|
* @GeneratedValue(strategy="AUTO")
|
|
*/
|
|
protected $id;
|
|
|
|
/**
|
|
* @Column(type="datetime")
|
|
*/
|
|
protected $created_at;
|
|
|
|
/**
|
|
* Get id
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* Set createdAt
|
|
*
|
|
* @param \DateTime $createdAt
|
|
*
|
|
* @return DDC1590User
|
|
*/
|
|
public function setCreatedAt($createdAt)
|
|
{
|
|
$this->created_at = $createdAt;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get createdAt
|
|
*
|
|
* @return \DateTime
|
|
*/
|
|
public function getCreatedAt()
|
|
{
|
|
return $this->created_at;
|
|
}
|
|
}
|