Completed
Push — master ( 5ef279...a5fce9 )
by
unknown
07:11
created

Media::setBinaryContent()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 2
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
3
namespace MediaMonks\SonataMediaBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
use MediaMonks\SonataMediaBundle\Model\AbstractMedia;
7
8
/**
9
 * @ORM\Entity(repositoryClass="MediaMonks\SonataMediaBundle\Repository\MediaRepository")
10
 * @ORM\Table(name="media")
11
 */
12
class Media extends AbstractMedia
13
{
14
    /**
15
     * @ORM\Column(name="id", type="integer")
16
     * @ORM\Id
17
     * @ORM\GeneratedValue(strategy="AUTO")
18
     */
19
    protected $id;
20
21
    /**
22
     * @ORM\Column(type="string", nullable=true)
23
     */
24
    protected $title;
25
26
    /**
27
     * @ORM\Column(type="text", nullable=true)
28
     */
29
    protected $description;
30
31
    /**
32
     * @ORM\Column(type="string")
33
     */
34
    protected $provider;
35
36
    /**
37
     * @ORM\Column(type="string")
38
     */
39
    protected $type;
40
41
    /**
42
     * @ORM\Column(type="string")
43
     */
44
    protected $providerReference;
45
46
    /**
47
     * @ORM\Column(type="json_array")
48
     */
49
    protected $providerMetaData = [];
50
51
    /**
52
     * @ORM\Column(type="string", nullable=true)
53
     */
54
    protected $image;
55
56
    /**
57
     * @ORM\Column(type="json_array")
58
     */
59
    protected $imageMetaData = [];
60
61
    /**
62
     * @ORM\Column(type="string", nullable=true)
63
     */
64
    protected $focalPoint;
65
66
    /**
67
     * @ORM\Column(type="string", nullable=true)
68
     */
69
    protected $copyright;
70
71
    /**
72
     * @ORM\Column(type="string", nullable=true)
73
     */
74
    protected $authorName;
75
76
    /**
77
     * @var \DateTime
78
     * @ORM\Column(type="datetime")
79
     */
80
    protected $createdAt;
81
82
    /**
83
     * @var \DateTime
84
     * @ORM\Column(type="datetime")
85
     */
86
    protected $updatedAt;
87
}
88