codysnider /
tt-rss
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace RssApp\Model; |
||
| 6 | |||
| 7 | use Doctrine\ORM\Mapping as ORM; |
||
| 8 | use RssApp\Model\Traits\Identified; |
||
| 9 | use RssApp\Model; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @ORM\Table(indexes={@ORM\Index(name="post_id", columns={"post_id"})}) |
||
| 13 | * @ORM\Entity |
||
| 14 | */ |
||
| 15 | class Enclosure extends Model |
||
| 16 | { |
||
| 17 | use Identified; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | * |
||
| 22 | * @ORM\Column(name="content_url", type="text", length=65535, nullable=false) |
||
| 23 | */ |
||
| 24 | private $contentUrl; |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | * |
||
| 29 | * @ORM\Column(name="content_type", type="string", length=250, nullable=false) |
||
| 30 | */ |
||
| 31 | private $contentType; |
||
|
0 ignored issues
–
show
|
|||
| 32 | |||
| 33 | /** |
||
| 34 | * @var string |
||
| 35 | * |
||
| 36 | * @ORM\Column(name="title", type="text", length=65535, nullable=false) |
||
| 37 | */ |
||
| 38 | private $title; |
||
|
0 ignored issues
–
show
|
|||
| 39 | |||
| 40 | /** |
||
| 41 | * @var string |
||
| 42 | * |
||
| 43 | * @ORM\Column(name="duration", type="text", length=65535, nullable=false) |
||
| 44 | */ |
||
| 45 | private $duration; |
||
|
0 ignored issues
–
show
|
|||
| 46 | |||
| 47 | /** |
||
| 48 | * @var int |
||
| 49 | * |
||
| 50 | * @ORM\Column(name="width", type="integer", nullable=false) |
||
| 51 | */ |
||
| 52 | private $width = 0; |
||
|
0 ignored issues
–
show
|
|||
| 53 | |||
| 54 | /** |
||
| 55 | * @var int |
||
| 56 | * |
||
| 57 | * @ORM\Column(name="height", type="integer", nullable=false) |
||
| 58 | */ |
||
| 59 | private $height = 0; |
||
|
0 ignored issues
–
show
|
|||
| 60 | |||
| 61 | /** |
||
| 62 | * @var Entry |
||
| 63 | * |
||
| 64 | * @ORM\ManyToOne(targetEntity="Entry") |
||
| 65 | * @ORM\JoinColumns({ |
||
| 66 | * @ORM\JoinColumn(name="post_id", referencedColumnName="id") |
||
| 67 | * }) |
||
| 68 | */ |
||
| 69 | private $post; |
||
|
0 ignored issues
–
show
|
|||
| 70 | } |
||
| 71 |