86 lines
1.3 KiB
PHP
86 lines
1.3 KiB
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;
|
|
|
|
/**
|
|
* @Column(type="datetime")
|
|
*/
|
|
protected $updated_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;
|
|
}
|
|
|
|
/**
|
|
* Set updatedAt
|
|
*
|
|
* @param \DateTime $updatedAt
|
|
*
|
|
* @return DDC1590User
|
|
*/
|
|
public function setUpdatedAt($updatedAt)
|
|
{
|
|
$this->updated_at = $updatedAt;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get updatedAt
|
|
*
|
|
* @return \DateTime
|
|
*/
|
|
public function getUpdatedAt()
|
|
{
|
|
return $this->updated_at;
|
|
}
|
|
}
|