mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
198 lines
2.9 KiB
PHP
198 lines
2.9 KiB
PHP
<?php
|
|
|
|
namespace Entities;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
/**
|
|
* FeedItem
|
|
*/
|
|
class FeedItem
|
|
{
|
|
/**
|
|
* @var integer
|
|
*/
|
|
private $id;
|
|
|
|
/**
|
|
* @var integer
|
|
*/
|
|
private $record_id;
|
|
|
|
/**
|
|
* @var integer
|
|
*/
|
|
private $sbas_id;
|
|
|
|
/**
|
|
* @var \DateTime
|
|
*/
|
|
private $created_on;
|
|
|
|
/**
|
|
* @var \DateTime
|
|
*/
|
|
private $updated_on;
|
|
|
|
/**
|
|
* @var \Entities\FeedEntry
|
|
*/
|
|
private $entry;
|
|
|
|
public function __construct(\Entities\FeedEntry $entry, \record_adapter $record)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* Get id
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* Set record_id
|
|
*
|
|
* @param integer $recordId
|
|
* @return FeedItem
|
|
*/
|
|
public function setRecordId($recordId)
|
|
{
|
|
$this->record_id = $recordId;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get record_id
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getRecordId()
|
|
{
|
|
return $this->record_id;
|
|
}
|
|
|
|
/**
|
|
* Set sbas_id
|
|
*
|
|
* @param integer $sbasId
|
|
* @return FeedItem
|
|
*/
|
|
public function setSbasId($sbasId)
|
|
{
|
|
$this->sbas_id = $sbasId;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get sbas_id
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getSbasId()
|
|
{
|
|
return $this->sbas_id;
|
|
}
|
|
|
|
/**
|
|
* Set entry
|
|
*
|
|
* @param \Entities\FeedEntry $entry
|
|
* @return FeedItem
|
|
*/
|
|
public function setEntry(\Entities\FeedEntry $entry = null)
|
|
{
|
|
$this->entry = $entry;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get entry
|
|
*
|
|
* @return \Entities\FeedEntry
|
|
*/
|
|
public function getEntry()
|
|
{
|
|
return $this->entry;
|
|
}
|
|
/**
|
|
* @var int
|
|
*/
|
|
private $ord;
|
|
|
|
|
|
/**
|
|
* Set ord
|
|
*
|
|
* @param \int $ord
|
|
* @return FeedItem
|
|
*/
|
|
public function setOrd(\int $ord)
|
|
{
|
|
$this->ord = $ord;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get ord
|
|
*
|
|
* @return \int
|
|
*/
|
|
public function getOrd()
|
|
{
|
|
return $this->ord;
|
|
}
|
|
|
|
/**
|
|
* Set created_on
|
|
*
|
|
* @param \DateTime $createdOn
|
|
* @return FeedItem
|
|
*/
|
|
public function setCreatedOn($createdOn)
|
|
{
|
|
$this->created_on = $createdOn;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get created_on
|
|
*
|
|
* @return \DateTime
|
|
*/
|
|
public function getCreatedOn()
|
|
{
|
|
return $this->created_on;
|
|
}
|
|
|
|
/**
|
|
* Set updated_on
|
|
*
|
|
* @param \DateTime $updatedOn
|
|
* @return FeedItem
|
|
*/
|
|
public function setUpdatedOn($updatedOn)
|
|
{
|
|
$this->updated_on = $updatedOn;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get updated_on
|
|
*
|
|
* @return \DateTime
|
|
*/
|
|
public function getUpdatedOn()
|
|
{
|
|
return $this->updated_on;
|
|
}
|
|
} |