Skip to content

Instantly share code, notes, and snippets.

@hmert
Created August 18, 2015 22:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hmert/a76c1281e6edc5eaafff to your computer and use it in GitHub Desktop.
Save hmert/a76c1281e6edc5eaafff to your computer and use it in GitHub Desktop.
<?php
namespace Ojs\JournalBundle\Document;
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
/**
* Class TransferredRecord
* @package Ojs\JournalBundle\Document
* @MongoDB\Document(collection="transferred_records")
*/
class TransferredRecord
{
/**
* @MongoDB\Id
* @var integer
*/
protected $id;
/**
* @MongoDB\Int
* @var integer
*/
protected $old_id;
/**
* @MongoDB\Int
* @var integer
*/
protected $new_id;
/**
* @MongoDB\String
* @var string
*/
protected $entity;
/**
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* @param int $id
* @return $this
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* @return int
*/
public function getNewId()
{
return $this->new_id;
}
/**
* @param int $new_id
* @return $this
*/
public function setNewId($new_id)
{
$this->new_id = $new_id;
return $this;
}
/**
* @return int
*/
public function getOldId()
{
return $this->old_id;
}
/**
* @param int $old_id
* @return $this
*/
public function setOldId($old_id)
{
$this->old_id = $old_id;
return $this;
}
/**
* @return string
*/
public function getEntity()
{
return $this->entity;
}
/**
* @param string $entity
* @return $this
*/
public function setEntity($entity)
{
$this->entity = $entity;
return $this;
}
}
<?php
namespace Ojs\JournalBundle\Document;
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
/**
* Class WaitingFiles
* @package Ojs\JournalBundle\Document
* @MongoDB\Document(collection="waiting_files")
*/
class WaitingFiles
{
/**
* @MongoDB\Id
* @var integer
*/
protected $id;
/**
* @MongoDB\Int
* @var integer
*/
protected $old_id;
/**
* @MongoDB\Int
* @var integer
*/
protected $new_id;
/**
* @MongoDB\String
* @var string
*/
protected $url;
/**
* @MongoDB\String
* @var string
*/
protected $path;
/**
* @MongoDB\Bool
* @var boolean
*/
protected $downloaded;
/**
* @MongoDB\Timestamp
* @var string
*/
protected $download_start_at;
/**
* @MongoDB\String
* @var string
*/
protected $type;
/**
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* @param int $id
* @return $this
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* @return int
*/
public function getNewId()
{
return $this->new_id;
}
/**
* @param int $new_id
* @return $this
*/
public function setNewId($new_id)
{
$this->new_id = $new_id;
return $this;
}
/**
* @return int
*/
public function getOldId()
{
return $this->old_id;
}
/**
* @param int $old_id
* @return $this
*/
public function setOldId($old_id)
{
$this->old_id = $old_id;
return $this;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* @param string $path
* @return $this
*/
public function setPath($path)
{
$this->path = $path;
return $this;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
/**
* @param string $url
* @return $this
*/
public function setUrl($url)
{
$this->url = $url;
return $this;
}
/**
* @return boolean
*/
public function isDownloaded()
{
return $this->downloaded;
}
/**
* @param boolean $downloaded
* @return $this
*/
public function setDownloaded($downloaded)
{
$this->downloaded = $downloaded;
return $this;
}
/**
* @return string
*/
public function getDownloadStartAt()
{
return $this->download_start_at;
}
/**
* @param string $download_start_at
* @return $this
*/
public function setDownloadStartAt($download_start_at)
{
$this->download_start_at = $download_start_at;
return $this;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string $type
* @return $this
*/
public function setType($type)
{
$this->type = $type;
return $this;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment