Completed
Push — master ( 7e243d...e0749f )
by Taosikai
11:17
created

SmartCollectionImage::setSrc()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file is part of the slince/shopify-api-php
5
 *
6
 * (c) Slince <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace Slince\Shopify\Manager\SmartCollection;
13
14
class SmartCollectionImage
15
{
16
    /**
17
     * @var string
18
     */
19
    protected $src;
20
21
    /**
22
     * @var int
23
     */
24
    protected $width;
25
26
    /**
27
     * @var int
28
     */
29
    protected $height;
30
31
    /**
32
     * @var \DateTimeInterface
33
     */
34
    protected $createdAt;
35
36
    /**
37
     * @return string
38
     */
39
    public function getSrc()
40
    {
41
        return $this->src;
42
    }
43
44
    /**
45
     * @param string $src
46
     *
47
     * @return CustomCollectionImage
48
     */
49
    public function setSrc($src)
50
    {
51
        $this->src = $src;
52
53
        return $this;
54
    }
55
56
    /**
57
     * @return int
58
     */
59
    public function getWidth()
60
    {
61
        return $this->width;
62
    }
63
64
    /**
65
     * @param int $width
66
     *
67
     * @return CustomCollectionImage
68
     */
69
    public function setWidth($width)
70
    {
71
        $this->width = $width;
72
73
        return $this;
74
    }
75
76
    /**
77
     * @return int
78
     */
79
    public function getHeight()
80
    {
81
        return $this->height;
82
    }
83
84
    /**
85
     * @param int $height
86
     *
87
     * @return CustomCollectionImage
88
     */
89
    public function setHeight($height)
90
    {
91
        $this->height = $height;
92
93
        return $this;
94
    }
95
96
    /**
97
     * @return \DateTimeInterface
98
     */
99
    public function getCreatedAt()
100
    {
101
        return $this->createdAt;
102
    }
103
104
    /**
105
     * @param \DateTimeInterface $createdAt
106
     *
107
     * @return CustomCollectionImage
108
     */
109
    public function setCreatedAt($createdAt)
110
    {
111
        $this->createdAt = $createdAt;
112
113
        return $this;
114
    }
115
}