2016-03-24 21:28:43 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Skobkin\Bundle\PointToolsBundle\Entity\Blogs;
|
|
|
|
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
|
|
|
|
/**
|
2016-12-11 03:03:59 +00:00
|
|
|
* @ORM\Table(name="files", schema="posts")
|
2017-01-12 22:58:52 +00:00
|
|
|
* @ORM\Entity(repositoryClass="Skobkin\Bundle\PointToolsBundle\Repository\Blogs\FileRepository", readOnly=true)
|
2016-03-24 21:28:43 +00:00
|
|
|
*/
|
|
|
|
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;
|
|
|
|
|
|
|
|
|
2017-01-12 22:58:52 +00:00
|
|
|
public function __construct($remoteUrl)
|
2016-03-24 21:28:43 +00:00
|
|
|
{
|
|
|
|
$this->remoteUrl = $remoteUrl;
|
|
|
|
}
|
|
|
|
|
2017-01-12 22:58:52 +00:00
|
|
|
public function getId(): int
|
2016-03-24 21:28:43 +00:00
|
|
|
{
|
|
|
|
return $this->id;
|
|
|
|
}
|
|
|
|
|
2017-01-12 22:58:52 +00:00
|
|
|
public function getRemoteUrl(): string
|
2016-03-24 21:28:43 +00:00
|
|
|
{
|
|
|
|
return $this->remoteUrl;
|
|
|
|
}
|
|
|
|
}
|