2016-03-24 21:28:43 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Skobkin\Bundle\PointToolsBundle\Entity\Blogs;
|
|
|
|
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* File
|
|
|
|
*
|
2016-12-11 03:03:59 +00:00
|
|
|
* @ORM\Table(name="files", schema="posts")
|
2016-03-24 21:28:43 +00:00
|
|
|
* @ORM\Entity(repositoryClass="Skobkin\Bundle\PointToolsBundle\Repository\Blogs\FileRepository")
|
|
|
|
*/
|
|
|
|
class File
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var integer
|
|
|
|
*
|
|
|
|
* @ORM\Column(name="id", type="integer")
|
|
|
|
* @ORM\Id
|
|
|
|
* @ORM\GeneratedValue(strategy="AUTO")
|
|
|
|
*/
|
|
|
|
private $id;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*
|
2016-03-26 21:33:55 +00:00
|
|
|
* @ORM\Column(name="remote_url", type="text", unique=true)
|
2016-03-24 21:28:43 +00:00
|
|
|
*/
|
|
|
|
private $remoteUrl;
|
|
|
|
|
|
|
|
|
|
|
|
public function __construct($remoteUrl = null)
|
|
|
|
{
|
|
|
|
$this->remoteUrl = $remoteUrl;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get id
|
|
|
|
*
|
|
|
|
* @return integer
|
|
|
|
*/
|
|
|
|
public function getId()
|
|
|
|
{
|
|
|
|
return $this->id;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set remoteUrl
|
|
|
|
*
|
|
|
|
* @param string $remoteUrl
|
|
|
|
* @return File
|
|
|
|
*/
|
|
|
|
public function setRemoteUrl($remoteUrl)
|
|
|
|
{
|
|
|
|
$this->remoteUrl = $remoteUrl;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get remoteUrl
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getRemoteUrl()
|
|
|
|
{
|
|
|
|
return $this->remoteUrl;
|
|
|
|
}
|
|
|
|
}
|