ninestat/src/ninestat-1.0/src/Cadoles/CoreBundle/Entity/ServerApplication.php

153 lines
2.8 KiB
PHP

<?php
namespace Cadoles\CoreBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity
* @ORM\Table(name="serverapplication")
* @ORM\HasLifecycleCallbacks
*/
class ServerApplication
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
private $version;
/**
* @ORM\Column(name="updatedate", type="datetime")
*/
private $updatedate;
/**
* @ORM\ManyToOne(targetEntity="Cadoles\CoreBundle\Entity\Server", inversedBy="serverapplications")
*/
private $server;
/**
* @ORM\ManyToOne(targetEntity="Cadoles\CoreBundle\Entity\Application", inversedBy="serverapplications")
*/
private $application;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set version
*
* @param string $version
*
* @return ServerApplication
*/
public function setVersion($version)
{
$this->version = $version;
return $this;
}
/**
* Get version
*
* @return string
*/
public function getVersion()
{
return $this->version;
}
/**
* Set updatedate
*
* @param \DateTime $updatedate
*
* @return ServerApplication
*/
public function setUpdatedate($updatedate)
{
$this->updatedate = $updatedate;
return $this;
}
/**
* Get updatedate
*
* @return \DateTime
*/
public function getUpdatedate()
{
return $this->updatedate;
}
/**
* Set server
*
* @param \Cadoles\CoreBundle\Entity\Server $server
*
* @return ServerApplication
*/
public function setServer(\Cadoles\CoreBundle\Entity\Server $server = null)
{
$this->server = $server;
return $this;
}
/**
* Get server
*
* @return \Cadoles\CoreBundle\Entity\Server
*/
public function getServer()
{
return $this->server;
}
/**
* Set application
*
* @param \Cadoles\CoreBundle\Entity\Application $application
*
* @return ServerApplication
*/
public function setApplication(\Cadoles\CoreBundle\Entity\Application $application = null)
{
$this->application = $application;
return $this;
}
/**
* Get application
*
* @return \Cadoles\CoreBundle\Entity\Application
*/
public function getApplication()
{
return $this->application;
}
}