Completed
Push — master ( 072987...b03ce1 )
by Bukashk0zzz
02:09
created

UserPhotos::__toString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 4
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the Bukashk0zzzLiipImagineSerializationBundle
5
 *
6
 * (c) Denis Golubovskiy <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Bukashk0zzz\LiipImagineSerializationBundle\Tests\Fixtures;
13
14
use Doctrine\ORM\Mapping as ORM;
15
use JMS\Serializer\Annotation as JMS;
16
use Vich\UploaderBundle\Mapping\Annotation as Vich;
17
use Bukashk0zzz\LiipImagineSerializationBundle\Annotation as Bukashk0zzz;
18
19
/**
20
 * UserPhotos Entity
21
 *
22
 * @ORM\Table(name="userPhotos")
23
 * @ORM\Entity()
24
 *
25
 * @JMS\ExclusionPolicy("all")
26
 *
27
 * @Vich\Uploadable
28
 * @Bukashk0zzz\LiipImagineSerializableClass
29
 */
30
class UserPhotos extends UserPictures
31
{
32
    /**
33
     * @ORM\ManyToOne(targetEntity="Bukashk0zzz\LiipImagineSerializationBundle\Tests\Fixtures\User", inversedBy="photos")
34
     * @ORM\JoinColumn(name="user_id", referencedColumnName="id")
35
     */
36
    protected $user;
37
38
    /**
39
     * @var string $photoName Photo name
40
     *
41
     * @ORM\Column(type="string", length=255)
42
     *
43
     * @JMS\Expose
44
     * @JMS\SerializedName("photo")
45
     *
46
     * @Bukashk0zzz\LiipImagineSerializableField(filter={"thumb_big", "thumb_small"}, vichUploaderField="photoFile", virtualField="photoThumb")
47
     */
48
    public $photoName;
49
}
50