Issues (75)

src/Services/Media/CoverImage.php (5 issues)

1
<?php
2
3
namespace Osnova\Services\Media;
4
5
class CoverImage extends Image
6
{
7
    /**
8
     * Get cover image UUID.
9
     *
10
     * @return string|null
11
     */
12
    public function getUuid()
13
    {
14
        return $this->getData('additionalData.uuid');
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->getData('additionalData.uuid') also could return the type array which is incompatible with the documented return type null|string.
Loading history...
15
    }
16
17
    /**
18
     * Get file size.
19
     *
20
     * @return int|null
21
     */
22
    public function getFileSize()
23
    {
24
        return $this->getData('additionalData.size');
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->getData('additionalData.size') also could return the type array|string which is incompatible with the documented return type integer|null.
Loading history...
25
    }
26
27
    /**
28
     * Get thumbnail URL.
29
     *
30
     * @return string|null
31
     */
32
    public function getThumbnailUrl()
33
    {
34
        return $this->getData('thumbnailUrl');
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->getData('thumbnailUrl') also could return the type array which is incompatible with the documented return type null|string.
Loading history...
35
    }
36
37
    /**
38
     * Get image URL.
39
     *
40
     * @return string|null
41
     */
42
    public function getUrl()
43
    {
44
        return $this->getData('url');
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->getData('url') also could return the type array which is incompatible with the documented return type null|string.
Loading history...
45
    }
46
47
    /**
48
     * Get image size name.
49
     *
50
     * @return string|null
51
     */
52
    public function getSizeName()
53
    {
54
        return $this->getData('size_simple');
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->getData('size_simple') also could return the type array which is incompatible with the documented return type null|string.
Loading history...
55
    }
56
}
57