Add token entities and repositories

This commit is contained in:
Andrey
2013-05-30 18:55:53 +02:00
parent 9c49589d9c
commit c2f7a5685e
4 changed files with 251 additions and 0 deletions

View File

@@ -0,0 +1,83 @@
<?php
namespace Entities;
use Doctrine\ORM\Mapping as ORM;
/**
* AggregateToken
*/
class AggregateToken
{
/**
* @var integer
*/
private $id;
/**
* @var integer
*/
private $usr_id;
/**
* @var string
*/
private $value;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set usr_id
*
* @param integer $usrId
* @return AggregateToken
*/
public function setUsrId($usrId)
{
$this->usr_id = $usrId;
return $this;
}
/**
* Get usr_id
*
* @return integer
*/
public function getUsrId()
{
return $this->usr_id;
}
/**
* Set value
*
* @param string $value
* @return AggregateToken
*/
public function setValue($value)
{
$this->value = $value;
return $this;
}
/**
* Get value
*
* @return string
*/
public function getValue()
{
return $this->value;
}
}

View File

@@ -0,0 +1,108 @@
<?php
namespace Entities;
use Doctrine\ORM\Mapping as ORM;
class FeedToken
{
/**
* @var integer
*/
private $id;
/**
* @var integer
*/
private $usr_id;
/**
* @var \Entities\Feed
*/
private $feed;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set usr_id
*
* @param integer $usrId
* @return FeedToken
*/
public function setUsrId($usrId)
{
$this->usr_id = $usrId;
return $this;
}
/**
* Get usr_id
*
* @return integer
*/
public function getUsrId()
{
return $this->usr_id;
}
/**
* Set feed
*
* @param \Entities\Feed $feed
* @return FeedToken
*/
public function setFeed(\Entities\Feed $feed = null)
{
$this->feed = $feed;
return $this;
}
/**
* Get feed
*
* @return \Entities\Feed
*/
public function getFeed()
{
return $this->feed;
}
/**
* @var string
*/
private $value;
/**
* Set value
*
* @param string $value
* @return FeedToken
*/
public function setValue($value)
{
$this->value = $value;
return $this;
}
/**
* Get value
*
* @return string
*/
public function getValue()
{
return $this->value;
}
}