Completed
Push — master ( 8e28ab...2236d8 )
by Taosikai
15:04
created

CustomCollectionImage::getHeight()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the slince/shopify-api-php
5
 *
6
 * (c) Taosikai <[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\CustomCollection;
13
14
class CustomCollectionImage
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 \DateTime
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
     * @return CustomCollectionImage
47
     */
48
    public function setSrc($src)
49
    {
50
        $this->src = $src;
51
52
        return $this;
53
    }
54
55
    /**
56
     * @return int
57
     */
58
    public function getWidth()
59
    {
60
        return $this->width;
61
    }
62
63
    /**
64
     * @param int $width
65
     * @return CustomCollectionImage
66
     */
67
    public function setWidth($width)
68
    {
69
        $this->width = $width;
70
71
        return $this;
72
    }
73
74
    /**
75
     * @return int
76
     */
77
    public function getHeight()
78
    {
79
        return $this->height;
80
    }
81
82
    /**
83
     * @param int $height
84
     * @return CustomCollectionImage
85
     */
86
    public function setHeight($height)
87
    {
88
        $this->height = $height;
89
90
        return $this;
91
    }
92
93
    /**
94
     * @return \DateTime
95
     */
96
    public function getCreatedAt()
97
    {
98
        return $this->createdAt;
99
    }
100
101
    /**
102
     * @param \DateTime $createdAt
103
     * @return CustomCollectionImage
104
     */
105
    public function setCreatedAt($createdAt)
106
    {
107
        $this->createdAt = $createdAt;
108
109
        return $this;
110
    }
111
}